Last active
December 14, 2019 06:31
-
-
Save havenwood/cd9d137c9cb759e55ba1c0b775d02cc3 to your computer and use it in GitHub Desktop.
An example for IRC
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
chars = str | |
.split | |
.map(&:chars) | |
.reduce(&:zip) | |
.each_slice(2) | |
.map(&:join) | |
.map(&:chars) | |
chars.map { |char| char.map(&HASH) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment