"map"

4 views
Skip to first unread message

John Hume

unread,
Mar 15, 2015, 8:49:13 PM3/15/15
to clojurebridg...@googlegroups.com
While students were working on the map-maps-to-names exercise on Saturday, there was some frustration about the overloaded word "map." Would it be worthwhile to call that out in the presentation when the Map data structure is introduced (since the map fn is introduced earlier) and perhaps suggest some clarifying terminology, like calling maps "hash-maps" even though not all maps are hash-maps?

David Chambers

unread,
Mar 16, 2015, 3:08:00 AM3/16/15
to clojurebridg...@googlegroups.com
It makes sense to highlight the three different things "map" can mean in the context of Clojure:

  - a noun describing a collection of key–value pairs;
  - a verb describing a transformation; or
  - the name given to a function which applies a transformation to each element in a collection to produce a new collection.

On 15 March 2015 at 17:49, John Hume <duelin....@gmail.com> wrote:
While students were working on the map-maps-to-names exercise on Saturday, there was some frustration about the overloaded word "map." Would it be worthwhile to call that out in the presentation when the Map data structure is introduced (since the map fn is introduced earlier) and perhaps suggest some clarifying terminology, like calling maps "hash-maps" even though not all maps are hash-maps?

--
You received this message because you are subscribed to the Google Groups "clojurebridge-curriculum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojurebridge-curr...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurebridge-curriculum.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages