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



  • (nnext x)
Same as (next (next x))

1 Example top

  • user=> (nnext '(1 2 3))
    user=> (nnext [])
    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})
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:108 top

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

Comments top

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