fnext

clojure.core

  • (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 [])
    nil 
    
    user=> (fnext [1])
    nil
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:110 top

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

Comments top

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