aboutsummaryrefslogtreecommitdiff
path: root/challenge-253/arne-sommer/raku/split-strings
blob: d5f105c387d3079fdb2f75f05d08b8740a539d44 (plain)
1
2
3
4
5
6
#! /usr/bin/env raku

unit sub MAIN ($separator where $separator.chars == 1,
               *@words where @words.elems > 0);

say @words>>.split($separator).[*;*].grep( *.chars ).map( '"' ~ * ~ '"' ).join(",");