You should use with the latest pre-release of 0.98.
Regarding unsafe-amb. You should use ``amb-lazy`` in compiled words.
Here's a simple version that prints all solutions. There's no reason to
use though if you disallow zero. You should just use numbers in
range [1,9].
:: solve ( -- )
[
P.S. -- 3 small code suggestions:
-for `last3` :
IN: scratchpad { 1 2 3 4 5 6 } 3 tail spill-seq ! or something like it
--- Data stack:
4
5
6
! -
-for `6array` :
IN: scratchpad 5 6 7 8 9 10 6 narray
--- Data stack:
{ 5 6 7 8 9 10 }
! -
is undefined in Factor V
Hi Alexander -
Regarding "Cannot apply “unsafe-amb” to a run-time computed value",
see `Optimizing compiler` in the source code browser,
& especially `bad-macro-input` under `Stack checker errors`:
"Most code you write will run with the optimizing compiler. Sometimes,
the non-optimizing compiler i