Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kaja47
Created January 2, 2015 05:50
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 kaja47/bdc04efa6cb11db79b67 to your computer and use it in GitHub Desktop.
Save kaja47/bdc04efa6cb11db79b67 to your computer and use it in GitHub Desktop.
val runes = "ᚨᛒᚳᛞᛖᚠᚷᚺᛁᛃᚲᛚᛗᚾᛟᛈᛩᚱᛋᛏᚣᚢᚹᛤᛣᛉ"
def runize(str: String) = str.toLowerCase map (l => if (runes.isDefinedAt(l-'a')) runes(l-'a') else ' ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment