Skip to content
laforge49 edited this page Aug 18, 2011 · 8 revisions

Send a Find message to a sequence actor to find a value.

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

Tests.

println(Future(Range(1,4), Find((a: Int) => a % 2 == 0)))
println(Future(Range(1,4), Find((a: Int) => a % 4 == 0)))

Output.

2
null

FindTest

Tutorial

Clone this wiki locally