Coerces coll to a (possibly empty) sequence, if it is not already
one. Will not force a lazy seq. (sequence nil) yields ()
(defn sequence
"Coerces coll to a (possibly empty) sequence, if it is not already
one. Will not force a lazy seq. (sequence nil) yields ()"
{:added "1.0"
:static true}
[coll]
(if (seq? coll) coll
(or (seq coll) ())))
Comments top
No comments for sequence. Log in to add a comment.