获取过滤列表的第一项
Get the first item of filtered list
clojure
中有some
,在chicken scheme
中可以表示为:
(define (some pred coll)
(lazy-head (lazy-filter pred (list->lazy-seq coll))))
是否有内置的东西?
clojure
中有some
,在chicken scheme
中可以表示为:
(define (some pred coll)
(lazy-head (lazy-filter pred (list->lazy-seq coll))))
是否有内置的东西?