Logicians & programmers, hi! I am wondering about the use of words "function" and "map" in functional programming languages such as #Clojure, and I would like to know your intuitions. Thread below.

Follow

@asamonek Great questions! As a first note, "map" is a higher order function that works basically the same in Clojure, JavaScript, Python, Perl, and many (most?) programming languages.

Importantly, it is NOT to be thought of as returning a subset (that would be the similarly ubiqitous `reduce` function, or in Clojure, variants like `(for)` and `(filter)`). Rather, all map functions across these languages serve to "map" a given function across a plurality of targets (a "collection", in Clojure parlance).

Have you yet encountered the algorithm Map Reduce, made famous by Google's heavy use of it last decade? This feels relevant to your line of inquiry. en.wikipedia.org/wiki/MapReduc

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.