tag:blogger.com,1999:blog-2062021423309914146.post2249381655289904686..comments2022-10-29T01:09:33.471-05:00Comments on Writing/Coding: Stemming, Part 5: Functions and RecursionEric Rochesterhttp://www.blogger.com/profile/15840004674816343941noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-2062021423309914146.post-58270855249493164392009-01-30T16:11:00.000-05:002009-01-30T16:11:00.000-05:00Hi rdsr.I used seq for a few reasons.First, it's t...Hi rdsr.<BR/><BR/>I used seq for a few reasons.<BR/><BR/>First, it's the idiom used in the Clojure community. It probably is the idiom for a couple of reasons....<BR/><BR/>Second, it's shorter to type.<BR/><BR/>Third, if you look in clojure/core.clj, "empty?" is defined as "(not (seq ...))". So "(not (empty? ...))" would become "(not (not (seq ...)))". I'm just being more direct.<BR/><BR/><BR/><BR/>Glad you're liking this.<BR/><BR/>EricEric Rochesterhttps://www.blogger.com/profile/15840004674816343941noreply@blogger.comtag:blogger.com,1999:blog-2062021423309914146.post-77669815082736216852009-01-30T10:47:00.000-05:002009-01-30T10:47:00.000-05:00Hi Eric,I'm just wondering, in the pop-stemmer-on ...Hi Eric,<BR/>I'm just wondering, in the pop-stemmer-on example, why did u usesd seq in the if condition instead of (not (empty? ...)) ...??RDhttps://www.blogger.com/profile/02270355407026813698noreply@blogger.comtag:blogger.com,1999:blog-2062021423309914146.post-90912672723250536562009-01-30T10:40:00.000-05:002009-01-30T10:40:00.000-05:00Wonderful tutorial Eric, I'm having a great time r...Wonderful tutorial Eric, <BR/>I'm having a great time reading it.RDhttps://www.blogger.com/profile/02270355407026813698noreply@blogger.com