open:core-collection-functions

Core Collection Functions

  • conj : conjoin returns new collection with an added element or key-value pair
  • assoc : associate returns new collection with added/modified value for given key or index
  • dissoc : dissociate returns new map in which a key has been removed
  • merge : returns a new map that combines the key-value pairs of one or more maps
  • get : returns value for a given key or index in a collection
  • pop : returns a new collection without the first element / key-value pair
  • peek : returns the element / key-value pair that would be removed by pop
  • first : returns the first element of the collection (or nil if the sequence has zero elements)
  • rest : returns a sequence of all the elements of the original except the first
  • seq : returns a sequence of a seq-able type's elements

  • open/core-collection-functions.txt
  • 마지막으로 수정됨: 2021/10/30 13:51
  • 저자 127.0.0.1