Re:A little thing to love about Perl 6 and COBOL
by agumonkey on Wednesday February 04, 2015 @08:05PM
(#9001155)
Because these are two basic building blocks of 'computation', I'd say first order. It's map and reduce in disguise (or the other way around, doesn't matter).
- [record] -> [derived from record] :: map
- Begin and End blocks are accumulator/stateful logic :: reduce
sed is also a little twisted version of awk, per line mapping, with pattern spaces for accumulations.
It's first order, because it can't reuse itself on smaller pieces of data, namely recursion (grammars, trees, etc)
It's first order, because it can't reuse itself on smaller pieces of data, namely recursion (grammars, trees, etc)