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)
(def
^{:doc "Same as (next (next x))"
:arglists '([x])
:added "1.0"
:static true}
nnext (fn ^:static nnext [x] (next (next x))))
Comments top
No comments for nnext. Log in to add a comment.