fork download
  1. USING: splitting sequences kernel math io prettyprint ;
  2. IN: star-struck
  3.  
  4. : star-struck ( str -- n ) [ CHAR: * = not ]
  5. split-when [ length 1 > ] filter concat length ;
  6.  
  7. lines [ star-struck . ] each
Success #stdin #stdout 0.11s 158016KB
stdin
*xy***
a*bc**def****g
*a*b*c*d*e**f
stdout
3
6
2