amb is a nondeterministic operator. It's a fun toy, although not terribly practical. It's usually implemented in terms of call/cc, a rare (and, as commonly implemented, expensive) function. CRuby implements it, JRuby doesn't.
It's not revelant to my main point, but I thought I'd have a bit of fun.