Skip to content

Instantly share code, notes, and snippets.

@gclaramunt
Created April 24, 2012 07:49
Show Gist options
  • Save gclaramunt/2477626 to your computer and use it in GitHub Desktop.
Save gclaramunt/2477626 to your computer and use it in GitHub Desktop.
val ins=List("ejp mysljylc kd kxveddknmc re jsicpdrysi","rbcpc ypc rtcsra dkh wyfrepkym veddknkmkrkcd","de kr kd eoya kw aej tysr re ujdr lkgc jv")
val outs=List("our language is impossible to understand","there are twenty six factorial possibilities","so it is okay if you want to just give up")
val dict=Map() ++ ins.zip(outs).flatMap( x=>x._1.toList.zip(x._2.toList))+('a'->'y')+('o'->'e')+('z'->'q')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment