Skip to content

Instantly share code, notes, and snippets.

@ryanwinchester
Last active April 27, 2020 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanwinchester/b9bdf09b636aa2e6f59137b1055c0904 to your computer and use it in GitHub Desktop.
Save ryanwinchester/b9bdf09b636aa2e6f59137b1055c0904 to your computer and use it in GitHub Desktop.
import Enum;c=String.replace("example string",~r/[\W_]/,"")|>String.split("",trim: true);zip(c,slice(c,1..-1))|>map(fn{a,b}->a<>b end)|>join(" ") end end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment