old-design-docs icon indicating copy to clipboard operation
old-design-docs copied to clipboard

List.munch used in spectests, but not defined.

Open coke opened this issue 13 years ago • 3 comments

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

coke avatar Oct 29 '11 23:10 coke

My inclination is that it will be part of the spec. There are several places where Rakudo uses it to good effect.

Pm

pmichaud avatar Jul 07 '12 16:07 pmichaud

I'm not sure what .munch exactly does. It seems to eat finite lists, and take some from infinite lists?

lizmat avatar Jun 28 '13 10:06 lizmat

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

colomon avatar Jun 28 '13 11:06 colomon