USING: splitting sequences kernel math io prettyprint ;IN: star-struck : star-struck ( str -- n ) [ CHAR: * = not ] split-when [ length 1 > ] filter concat length ; lines [ star-struck . ] each
"*xy***" "a*bc**def****g" "*a*b*c*d*e**f"
3 6 2
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!