in reply to Re: Re: Splice of ref to AoH not removing element
in thread Splice of ref to AoH not removing element
map and grep are really pretty easy, once you know the secret: read them right to left.
map iterates over a list, executing the code block for each element in turn, returning a list of whatever the code block returns. Use it to transform one list into another.
grep iterates over a list, executing the code block for each element in turn, returning a list of only those elements for which the code block returns true. Use it to filter out list elements.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Splice of ref to AoH not removing element
by bradcathey (Prior) on May 30, 2004 at 23:14 UTC | |
by tkil (Monk) on May 31, 2004 at 02:53 UTC |