all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
3
Task/Stack-traces/Scala/stack-traces.scala
Normal file
3
Task/Stack-traces/Scala/stack-traces.scala
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
def callStack = try { error("exception") } catch { case ex => ex.getStackTrace drop 2 }
|
||||
|
||||
def printStackTrace = callStack drop 1 /* don't print ourselves! */ foreach println
|
||||
Loading…
Add table
Add a link
Reference in a new issue