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



  • (fnext x)
Same as (first (next x))

1 Example top

  • user=> (fnext ['(a b c) '(b a c)])
    (b a c) 
    user=> (fnext '([a b c] [b a c]))
    [b a c] 
    user=> (fnext {:a 1 :b 2 :c 3})
    [:b 2] 
    user=> (fnext [])
    user=> (fnext [1])
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:102 top

 ^{:doc "Same as (first (next x))"
   :arglists '([x])
   :added "1.0"}
 fnext (fn fnext [x] (first (next x))))
Vars in clojure.core/fnext: first fn next

Comments top

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