Skip to content

Instantly share code, notes, and snippets.

@otobrglez
Created October 24, 2020 14:03
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 otobrglez/5e7421354b3b245cc45a98e449e1797d to your computer and use it in GitHub Desktop.
Save otobrglez/5e7421354b3b245cc45a98e449e1797d to your computer and use it in GitHub Desktop.
// Live is to short to not have fun.
// Oto Brglez
// @otobrglez
object Main extends App {
type `🐰` = String
type `πŸ‘¨β€πŸ’Ό` = `🐰`
type `πŸ’―` = Int
val (`nπŸ†•`: `🐰`, `sπŸ‘½`: `🐰`) = ("\n", " ")
val `πŸ‘‹`: (`πŸ‘¨β€πŸ’Ό`, `🐰`) => `🐰` = { (`πŸ‘Ά`, `πŸ‡`) =>
val s = List(`πŸ‡`, `πŸ‘Ά`, `πŸ‡`)
.zip(3 :: 1 :: 3 :: Nil)
.map { case (`a🚨`: `🐰`, `bπŸ¦‹`: `πŸ’―`) => (`a🚨` + `sπŸ‘½`) * `bπŸ¦‹` }
.mkString(`sπŸ‘½`)
(`πŸ‡` * (s.length / 2) :: s :: `πŸ‡` * (s.length / 2) :: Nil)
.mkString(`nπŸ†•`)
}
print(`πŸ‘‹`("hello!", "🐰"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment