Immutable containers have nice subtype relationships: arrays <= ordered dictionaries <= unordered maps <= weak maps <= functions.
-
-
Replying to @TimSweeneyEpic
these relationships are not immediately obvious to me. how does e.g. an array relate to an ordered dict?
1 reply 0 retweets 0 likes -
Replying to @paniq
An array is an ordered dictionary in which the keys are consecutive natural numbers 0..length.
3 replies 0 retweets 0 likes
Replying to @TimSweeneyEpic @paniq
A pure function is a weak map in which the values are computed on demand.
12:01 PM - 8 Jan 2017
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.