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:117 top

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

Comments top

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