ClojureDocs

Nav

Namespaces

nnext

clojure.core

Available since 1.0 (source)
  • (nnext x)
Same as (next (next x))
1 Example
user=> (nnext '(1 2 3))
(3)

user=> (nnext [])
nil 

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

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

user=> (nnext #{:a :b :c})
(:c)
See Also

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

Added by svenschoenung

Same as (first (next x))

Added by svenschoenung

Same as (first (first x))

Added by svenschoenung

Same as (next (first x))

Added by svenschoenung
0 Notes
No notes for nnext