function | since v0.0-927 | clojure.core/nfirst | Edit |
(nfirst coll)
Same as (next (first coll))
.
(nfirst [[1 2 3] [4 5]])
;;=> (2 3)
(nfirst [[1 2] [3 4]])
;;=> (2)
(nfirst [[1] [2 3]])
;;=> nil
(nfirst [[] [1 2]])
;;=> nil
Same as (next (first x))
(defn nfirst
[coll]
(next (first coll)))