2 ms·
Lisphp's map/filter/reduce functions are implemented in the same manner that Parentscript does. This is map: http://github.com/dahlia/lisphp/blob/81849070ac7ff
by dahlia 16y ago
Lisphp's map/filter/reduce functions are implemented in the same manner that Parentscript does.
This is map: http://github.com/dahlia/lisphp/blob/81849070ac7ff13948786b5dbc675806d8fd2c5c/Lisphp/Runtime/List.php#L98 http://github.com/dahlia/lisphp/blob/81849070ac7ff13948786b5...
This is filter: http://github.com/dahlia/lisphp/blob/81849070ac7ff13948786b5dbc675806d8fd2c5c/Lisphp/Runtime/List.php#L129 http://github.com/dahlia/lisphp/blob/81849070ac7ff13948786b5...
This is fold: http://github.com/dahlia/lisphp/blob/81849070ac7ff13948786b5dbc675806d8fd2c5c/Lisphp/Runtime/List.php#L142 http://github.com/dahlia/lisphp/blob/81849070ac7ff13948786b5...
Lisphp respect the iterator protocol of PHP instead of Lisp tradition in the practical reason.