Last active
April 27, 2020 21:32
-
-
Save ryanwinchester/b9bdf09b636aa2e6f59137b1055c0904 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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