I'm having trouble defining multi-line functions in the script editor, unless I've already run the Scala Tuturial story.
If I enter:
def minmax(x: Int, y: Int): (Int,Int) = {
if (x > y) (y,x)
else (x,y)
}
the script editor edge is green but there's never any output other than "—-" (no acknowledgement that the function was created as it usually does), and the same thing happens for any subsequent inputs - no output.
Single line functions don't seem to trigger this behavior. Also it doesn't happen if I've just opened the Scala Tutorial story and cleared the editor.
Is there some way of entering this "full sala" mode without opening the Scala Tuturial?
Thanks and I greatly enjoy this tool BTW!
Steve Harris and son