[REBOL] recursive?
From: rotenca::telvia::it at: 24-Jul-2001 12:49
> My solution of the new puzzle:
> >
> > Define a function RECURSIVE? able to find out, if a Rebol block is
> > recursive.
If i did copy all yours depentent functions well (why not a script with all
the function ready to use?), here are my results:
x: [1]
insert/only x x
print recursive? x ;true
x: [1]
insert/only x next x
print recursive? x ;false *** not strictly ricorsive?
x: [1]
insert/only next x next x
print recursive? x ;true
x: [1]
insert/only next x x
print recursive? x ; *** endless loop
---
Ciao
Romano