scalax.rules

class Result

[source: scalax/rules/Result.scala]

sealed abstract class Result[+Out, +A, +X]
extends AnyRef
Direct Known Subclasses:
Success, Failure, Error

Method Summary
abstract def flatMap [Out2, B](f : (Out, A) => Result[Out2, B, Nothing]) : Result[Out2, B, X]
abstract def map [B](f : (A) => B) : Result[Out, B, X]
abstract def map [Out2, B](f : (Out, A) => (Out2, B)) : Result[Out2, B, X]
abstract def orElse [Out2 >: Out, B >: A](other : => Result[Out2, B, Nothing]) : Result[Out2, B, X]
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
abstract def map[B](f : (A) => B) : Result[Out, B, X]

abstract def map[Out2, B](f : (Out, A) => (Out2, B)) : Result[Out2, B, X]

abstract def flatMap[Out2, B](f : (Out, A) => Result[Out2, B, Nothing]) : Result[Out2, B, X]

abstract def orElse[Out2 >: Out, B >: A](other : => Result[Out2, B, Nothing]) : Result[Out2, B, X]


Copyright (c) 2005-8 The Scalax Project. All Rights Reserved.