RT @the_lazy_folder
TIL that vectors in can be used as functions.

instead of using `nth`, you can use this.

@worldsendless not a clojure guy but looks a lot like how its treated in haskell where a tuple can also just be the curried version of the arguments of a method, you can uncurry as well

Follow

@freemo Very cool! I need to learn me some Haskell one of these days. Clojure doesn't technically have currying out of the box, though I think it does practically.

I actually didn't know Tuple was a named data structure in Haskell, though I believe it is also part of the Python vocabulary.

@worldsendless A tuple is quite common in many languages and generally means something pretty similar. The python implementation of a tuple is conceptually similar to it in haskell.

@freemo :Yeah, it's the term in Computer Science. It's just not one used in Clojure much, so I forgot about it until recently

@worldsendless @freemo Sexy nerd fact, a tuple with length 16 is a "sexdecuple"

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.