|
|
|
|
|
by hythloday
4384 days ago
|
|
I only skimmed the tutorial, but in Scala/Finagle: val (friendsX, friendsY) = (friendsOf(x), friendsOf(y))
for {
fx <- friendsX
fy <- friendsY
} yield (fx intersect fy).size
really liking the look of this, thanks for open-sourcing! |
|
Something like...
This will travel as far as possible through all paths in the AST collecting all IO to be performed in the first round (which, once fetched, will unblock more of the AST, and the process repeats until we have an answer).