Logo

Programming-Idioms

History of Idiom 189 > diff from v25 to v26

Edit summary for version 26 by senfoel:
New Haskell implementation by user [senfoel]

Version 25

2019-12-28, 21:10:09

Version 26

2020-01-06, 14:51:05

Idiom #189 Filter and transform list

Produce a new list y containing the result of function T applied to all elements e of list x that match the predicate P.

Idiom #189 Filter and transform list

Produce a new list y containing the result of function T applied to all elements e of list x that match the predicate P.

Extra Keywords
map apply satisfy
Extra Keywords
map apply satisfy
Code
y = (map t . filter p) x
Comments bubble
Capitalized names are reserved for types and data constructors