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

clojure.core

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

1 Example top

  • 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)
    
    
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

(def
 ^{: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.