[REBOL] Re: [SCRIPT] select/deep
From: coussement:c:itc:mil:be at: 2-Feb-2001 10:06
Hi Andrew,
Thanks for suggesting, but IMHO I think the approach I proposed should be
more robust for multi-type nested structures:
Let's say:
>> c: ["anybody" [test1 [1 [1 2] 2 [1 5]]]]
>> c/"anybody"/test1
** Syntax Error: Invalid path -- c/.
** Where: (line 1) c/"anybody"/test1
>> select-deep c "anybody" 'test1
== [1 [1 2] 2 [1 5]]
But in order to allow this, you have to modify my function's header in :
select-deep: func [
data [block!]
arg1 [any-type!]
arg2 [any-type! unset!]
arg3 [any-type! unset!]
arg4 [any-type! unset!]
arg5 [any-type! unset!]
][...]
Your idea ?
chr==