Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Scala offers an ability to enter multi-line strings literals
Scala offers a method called stripMargin that removes the left-hand part of a multiline string up to a specified delimiter (default: "|"). Here is an example:

Entering Multi-line strings

Enter triple quots to envoke StripMargin method. You can enter multi-line strings.

It also preseves white space. Please see the following example:

  • No labels