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

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

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

Comments top

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