Created
May 11, 2011 09:21
-
-
Save xuwei-k/966171 to your computer and use it in GitHub Desktop.
scala2.8.1のlibrary中でEitherが使用されている箇所
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src2.8.1\scala-library-src\scala\actors\Future.scala" | |
157,12 def awaitEither[A, B >: A](ft1: Future[A], ft2: Future[B]): B = { | |
src2.8.1\scala-library-src\scala\collection\immutable\List.scala" | |
549,32 def lefts[A, B](es: Iterable[Either[A, B]]) = | |
559,33 def rights[A, B](es: Iterable[Either[A, B]]) = | |
571,34 def separate[A,B](es: Iterable[Either[A, B]]): (List[A], List[B]) = | |
src2.8.1\scala-library-src\scala\concurrent\ops.scala" | |
28,40 private def tryCatch[A](body: => A): Either[Throwable, A] = | |
31,48 private def getOrThrow[T <: Throwable, A](x: Either[T, A]): A = | |
56,25 val y = new SyncVar[Either[Throwable, B]] | |
src2.8.1\scala-library-src\scala\concurrent\ThreadRunner.scala" | |
30,40 private def tryCatch[A](body: => A): Either[Exception, A] = | |
43,30 val result = new SyncVar[Either[Exception, S]] | |
src2.8.1\scala-library-src\scala\util\control\Exception.scala" | |
99,37 def either[U >: T](body: => U): Either[Throwable, U] = toEither(Right(body)) | |
113,11 def toEither: Catch[Either[Throwable, T]] = withApply(Left(_)) | |
127,19 def either(): Either[Throwable, T] = catcher either body | |
128,38 def either[U >: T](other: => U): Either[Throwable, U] = catcher either other | |
src2.8.1\scala-library-src\scala\util\parsing\combinator\PackratParsers.scala" | |
133,43 private case class MemoEntry[+T](var r: Either[LR,ParseResult[_]]){ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment