Jeremy Vuillermet <jeremy.vuiller...@gmail.com> writes:

> Thanks, that' clearer.
> Also I didn't take time to read the docstring
>   "Returns non-nil if nums are in monotonically decreasing order, 
>   otherwise false." 
>
> so I guess [2] is monotonically decreasing and increasing at the same
> time.


Yeah, so the same list can be both decreasing and increasing at the same time.

user> (def l '(1))
#'user/l
user> (apply < l)
true
user> (apply > l)
true

So, < and > are not mutually exclusive. Numerically counter-intuitive, I
think, although logically expected.


> Maybe I just read too much about transducers and now I try -1 arity 
> everywhere


Basically, you were expecting a form of curry. I think that would make
sense, except that > is variadic. Got to know where to stop with
curries in functional programming as in life.

Phil

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to