2 ms·
The Raku programming language has, with some tweaks: data.store.book.grep(*.price < 10).map(*.title) Although personally I would write that as: data.
by lizmat 2y ago
The Raku programming language has, with some tweaks:
data.store.book.grep(*.price < 10).map(*.title)
Although personally I would write that as:
data.store.book.map: { .title if .price < 10 }
which combines the filter / map into a single operation.
https://raku.org https://raku.org