in reply to Grep Fuunction
grep and map differ in the return values. The former will always returns a subset of the original list (the entire list is a subset as well). An element of the original list will be returned if the expression (or block) returned a true value when that element was processed. The return value of map is a list consisting of the actual return values of the expression or block.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Grep Fuunction
by smitz (Chaplain) on Jun 12, 2002 at 10:13 UTC |