That's interesting. I haven't learned about reductions yet—I'll check it
out.
If you consider the following,
(defn dot-product [v1 v2] (reduce + (map * v1 v2)))
perhaps dot-product would be considered a noun, while since the reduce it
is defined in terms of speaks of *how* instead of *what,*
Never thought of it that way, I always verb the noun.
Did you learn about reductions, yet? It's clear that the name corresponds
to the intended output at least in that case.
On Friday, May 9, 2014, Mike Fikes wrote:
> I am new to functional programming and caught myself reading “reduce” as
> “t
I am new to functional programming and caught myself reading “reduce” as “the
reduction of.”
Do you experienced Clojure programmers find yourselves thinking in terms of
nouns instead of verbs? (Non-temporal expressions as opposed to actions?)
Some of the operations reinforce this way of thinkin