3 ms·
And yet... Perl is good with its chained operators acting on lists? print join '', sort { $a cmp $b } grep { !$seen{$_}++ } # = uniq
by amiga386 1y ago
And yet... Perl is good with its chained operators acting on lists?
print join '',
sort { $a cmp $b }
grep { !$seen{$_}++ } # = uniq
<STDIN>;
- johnisgood 1y agoI do not write such Perl code, but I have in the past.
- johnisgood 1y agoOh and by the way, it does not look that different from that of Rust. :) I have came across a lot of Rust projects.