Dan Bron wrote:
> I'll grant python and perl, having large user bases. Perl in
> particular has two operators, map and grep , which act like
> f/ and (g@:#~ f) respectively.
I think perl's map is more like f"0 than like f/
$ perl -le 'print map {1+$_} qw<1 2 3 4 5>'
23456
$ perl -le '$,=" "; print map {$sum+=$_} qw<1 2 3 4 5>'
1 3 6 10 15
3 :'1+y'("0)1 2 3 4 5
2 3 4 5 6
3 :'s=:s+y'("0) 1 2 3 4 5[s=:0
1 3 6 10 15
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm