Here’s a surprising (to me) consequence of the laziness in Clojure, against which I spent almost an hour banging my head today: this function will throw a StackOverflow error, because `map` returns a lazy seq and you end up with a tower of lazy seqs all the way down. Replacing `map` with `mapv` fixes it.

Follow

@arnemart takes a little while to get under your skin 😅

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Deff

A private server for a friendly bunch of peeps.