Logo

Programming-Idioms

History of Idiom 189 > diff from v6 to v7

Edit summary for version 7 by tkoenig:
[Fortran] So that it works :-)

Version 6

2019-09-27, 13:26:35

Version 7

2019-09-27, 13:26:52

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
Extra Keywords
map apply
Code
y = pack (t(x), mask=p(x))
Code
y = pack (t(x), mask=p(x))
Comments bubble
p has to be an elemental function.