DEV Community

Discussion on: Write a function that shows off something unique or interesting about the language you're using

Collapse
 
stefandorresteijn profile image
Stefan Dorresteijn • Edited

Not a function but a fun little bit of code. It's not all that interesting but it shows how easy it is to write code without defining variables in Elixir, which cleans up your code a lot!

IO.puts "na "
|> String.upcase
|> String.duplicate(8)
|> Kernel.<>("Batman!")