ffirst

clojure.core

  • (ffirst x)
Same as (first (first x))

2 Examples top

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

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

Comments top

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