ClojureDocs

导航

命名空间

nfirst

clojure.core

自 1.0 版本可用 ()
  • (nfirst x)
Same as (next (first x))
1 Example
user=> (nfirst [])
nil 

user=> (nfirst ['(a b c) '(b a c) '(c b a) '(a c b)])
(b c)

user=> (nfirst {:a 1, :b 2, :c 3, :d 4})
(1)

user=> (nfirst #{1 2 3})
java.lang.IllegalArgumentException: Don't know how to create ISeq from: java.lang.Integer (NO_SOURCE_FILE:0)
See Also

Returns a seq of the items after the first. Calls seq on its argument. If there are no more items...

Returns the first item in the collection. Calls seq on its argument. If coll is nil, returns nil...

Added by svenschoenung

Same as (first (first x))

Added by svenschoenung

Same as (first (next x))

Added by svenschoenung

Same as (next (next x))

Added by svenschoenung
0 Notes
No notes for nfirst