second

clojure.core

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

1 Example top

  • user=> (second '(:alpha :bravo :charlie))
    :bravo
    
    user=> (second [1 2 3])
    2
    
    user=> (second {:a 1 :b 2 :c 3})
    [:b 2]
    
    user=> (second #{1 2 3})
    2
    
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:89 top

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

Comments top

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