Skip to content

Instantly share code, notes, and snippets.

@AntonFagerberg
Last active August 29, 2015 14:23
Show Gist options
  • Save AntonFagerberg/24b32736a66065cc6f05 to your computer and use it in GitHub Desktop.
Save AntonFagerberg/24b32736a66065cc6f05 to your computer and use it in GitHub Desktop.
Sliding window
"abcdef" |> String.split("", trim: true) |> Enum.chunk(3, 1) |> Enum.map(&Enum.join/1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment