You're viewing version 1.2.0 of nfirst. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16



  • (nfirst x)
Same as (next (first x))

1 Example top

  • user=> (nfirst [])
    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})
    user=> (nfirst #{1 2 3})
    java.lang.IllegalArgumentException: Don't know how to create ISeq from: java.lang.Integer (NO_SOURCE_FILE:0)
Log in to add / edit an example.

See Also top

  • 0

    Returns a seq of the items after the first. Calls seq on its argume

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:96 top

 ^{:doc "Same as (next (first x))"
   :arglists '([x])
   :added "1.0"}
 nfirst (fn nfirst [x] (next (first x))))
Vars in clojure.core/nfirst: first fn next
Used in 0 other vars

Comments top

No comments for nfirst. Log in to add a comment.