Re: [Factor-talk] Rosettacode and amb

2009-12-09 Thread Samuel Tardieu
Jon == Jon Harper jon.harpe...@gmail.com writes: Jon Hi everyone, I wanted to use amb (one the of problems of Jon rosettacode.org) in factor, but I'm not sure if the solution I came Jon up with is good. Could you give some feedback ? Is there a Jon easier/more efficient way than the macro-map

[Factor-talk] Doctext for map-reduce needs fixing

2009-12-09 Thread Ben Schlingelhof
Hi there, by sheer luck I stumbled across a mistake in the map-reduce documentation. It says: Unclips the first element of the sequence, calls map-quot on that element, and proceeds like a reduce, where the calculated element is the identity element and the rest of the sequence is the sequence to

Re: [Factor-talk] Rosettacode and amb

2009-12-09 Thread Samuel Tardieu
Sam == Samuel Tardieu s...@rfc1149.net writes: Sam - no more macro: select recursively builds a candidate using Sam amb And as Jon noticed (in a private chat session), select is best defined as : select ( seq -- seq' ) [ amb-lazy ] map ; rather than using the constructive recursive