old-design-docs
old-design-docs copied to clipboard
List.munch used in spectests, but not defined.
Need a ruling as to whether this should be part of the spec, or if the tests need re-writing:
S03-metaops/zip.t
S03-operators/range-int.t
S03-sequence/arity0.t
S03-sequence/basic.t
S03-sequence/nonnumeric.t
S04-statements/gather.t
My inclination is that it will be part of the spec. There are several places where Rakudo uses it to good effect.
Pm
I'm not sure what .munch exactly does. It seems to eat finite lists, and take some from infinite lists?
It reifies the next N elements in an infinite list. Probably waiting on pmichaud++'s list (re-?)design for a decision on this.
On Fri, Jun 28, 2013 at 6:35 AM, lizmat [email protected] wrote:
I'm not sure what .munch exactly does. It seems to eat finite lists, and take some from infinite lists?
— Reply to this email directly or view it on GitHubhttps://github.com/perl6/specs/issues/7#issuecomment-20181293 .
Solomon Foster: [email protected] HarmonyWare, Inc: http://www.harmonyware.com