You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Tuple in Clojure is a very simple data structure, usually represented as two related values in a vector
[value1 value2]
The value of a tuple is in its simplicity, although greater responsibility is required to use the tuple values in the desired way.
The tuple provides less structure and meaning than a hash-map, as the values in the tuple have no explicit key (although the first value could be perceived as the key, but then a hash-map representation would feel more appropriate)
Review Clojure Design Club discussions on tuples for more examples of how they are used.
The text was updated successfully, but these errors were encountered:
A Tuple in Clojure is a very simple data structure, usually represented as two related values in a vector
The value of a tuple is in its simplicity, although greater responsibility is required to use the tuple values in the desired way.
The tuple provides less structure and meaning than a hash-map, as the values in the tuple have no explicit key (although the first value could be perceived as the key, but then a hash-map representation would feel more appropriate)
Review Clojure Design Club discussions on tuples for more examples of how they are used.
The text was updated successfully, but these errors were encountered: