Alexander, John -

Nice exchange of ideas here; much obliged to you both.
I've attached timers to each approach, and they're comparable,
at approximately a second each.

Alexander, your non-MACRO: def of `last3` -

: last3 ( seq -- X Y Z )
3 cut* nip first3 ; inline

- is very appealing; I'll make use of this. Hadn't thought of it.

John, as usual, your `solve` word cuts straight to the quick, in
illustrating the use of the `backtrack` vocab.

Factor is my 2nd language, after Forth (via Neon, circa 1984!),
& a really great system to explore modern programming.

Onward,
~cw



On Sun, Oct 8, 2017 at 4:05 AM, Alexander Ilin <ajs...@yandex.ru> wrote:

> Hello, John!
>
> 08.10.2017, 07:46, "John Benediktsson" <mrj...@gmail.com>:
>
> Regarding unsafe-amb.  You should use ``amb-lazy`` in compiled words.
> Here's a simple version that prints all solutions.
>
>
> As I said, a perfect solution! Thanks for the `amb-lazy` hint.
>
> ---=====---
> Александр
>
>



-- 
*~ Memento Amori*
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to