William James
11/1/2015 12:03:00 AM
WJ wrote:
> > The extended loop macro does this sort of thing out of the box.
> >
> > (loop for string in '("foo" "123" "bar" "456")
> > when (parse-integer string :junk-allowed t)
> > collect it)
> > => (123 456)
>
> Gauche Scheme:
>
> gosh> (filter-map string->number '("foo" "123" "bar" "456"))
> (123 456)
MatzLisp (Ruby):
["foo", "123", "bar", "456"].flat_map{|x| [Integer(x)] rescue []}
==>[123, 456]
--
Viewed at its most abstract level, a fundamental agenda is thus to influence
the European-derived peoples of the United States to view concern about their
own demographic and cultural eclipse as irrational and as an indication of
psychopathology. --- Dr. Kevin MacDonald; "The Frankfurt School of Social
Research and the Pathologization of Gentile Group Allegiances"