> On 18 Jul 2017, at 11:45, Mark Carter <alt.mcar...@gmail.com> wrote: > > > > On 18/07/2017 09:53, Brent Laabs wrote: >> Are you looking for grep()? https://docs.perl6.org/routine/grep > Ah yes. Thanks for that. > Pretty good: > > say ($schema.lines().map: &shlex-fields).grep: { .elems() > 0; } ;
say $schema.lines.map(&shlex-fields).grep: *.elems; should also do the trick, assuming .elems cannot return a value < 0.