Skip to content
laforge49 edited this page Jul 31, 2011 · 9 revisions

Send the Exists message to a sequence actor to find a value.

case class Exists[V](f: V => Boolean)

A simple test.

println(Future(new Range(1,4), Exists((a: Int) => a == 3)))
println(Future(new Range(1,4), Exists((a: Int) => a == 4)))

Output.

true
false

ExistsTest

Tutorial

Clone this wiki locally