summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
authorcchantep <chantepie@altern.org>2014-10-29 17:25:01 +0100
committerAdriaan Moors <adriaan.moors@typesafe.com>2015-04-07 16:28:43 -0700
commitf10dcc76dff4aa9146cd1ec4052fe136f597a260 (patch)
tree80a69dfd9ddf9b4f246d1b475c832825de0c9eb5 /test/files/neg
parent293625e7bb685514ce82a0400bbd7ba5708d6553 (diff)
downloadscala-f10dcc76dff4aa9146cd1ec4052fe136f597a260.tar.gz
scala-f10dcc76dff4aa9146cd1ec4052fe136f597a260.tar.bz2
scala-f10dcc76dff4aa9146cd1ec4052fe136f597a260.zip
SI-8336: add `fold` & `toEither` to `util.Try`
`res.fold(fa, fb)` evaluates to `fa(e)` if `res` is a `Failure(e)`, or `fb(value)` if `res` is a `Success(value)`. (If `fb` throws an exception `e` when applied, `fa(e)`.)
Diffstat (limited to 'test/files/neg')
0 files changed, 0 insertions, 0 deletions