funcool/cuerdas

(blank? nil) returns nil, not true.

decoursin opened this issue · 2 comments

The documenation says that (blank? nil) => true, but that's not what I'm getting, see below:

(showing other blank? examples to show that the blank? is working, just not for nil or maybe your documentation is wrong?)

nick> (blank? "  ")
true
nick> (blank? nil)
nil
nick> (blank? "foobr")
false
nick> (blank? "")
true
nick> (blank? "\n")
true
nick> (blank? "\n\t")
true

The documentation is wrong, thanks for reporting it.

Fixed on master.