scala console 用:paste 多行输入

scala> :paste
// Entering paste mode (ctrl-D to finish)
if (true)
    print("that was true")
else
    print("false")
[Ctrl-D]

// Exiting paste mode, now interpreting.
that was true

 

posted @ 2019-10-22 16:06  sowhat1412  阅读(239)  评论(0编辑  收藏  举报