Podcast Lookup

Write or Paste Multi-Line Code in Scala REPL

alexkras.com

  • April 7, 2017

About this episode

I love Python and ipython, so I often crave similar experience when working with Scala. Scala already has a built in REPL which is a huge plus, however, I wasn’t sure how to copy/paste multi-line text. For example, I had a snippet of code saved somewhere that looked as such: This would work fine if entered like this: But Scala would evaluate the first…

Source