map is for returning a list (computed based on an input list); you aren't doing that so map is inappropriate. But you can use braces to pass a block to map so you could (mis)use it here. Did you try anything?
- tye
In reply to Re: adapting foreach to map (why?)
by tye
in thread adapting foreach to map
by goibhniu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |