Separator by Irratix

g(_:s)y|2*sum s>sum y=1+g s y|1>0=1
u=unwords
f y=u(take(g x x)z)++"|"++u(drop(g x x)z)
 where
  z=words y
  x=map read z
m@main=do getLine>>=putStrLn.f;m

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page