[REBOL] Re: [ Feature request ] move
From: lmecir:mbox:vol:cz at: 13-Aug-2003 13:05
Hi Norman,
> example like:
a: [ a b c d e f g h ... ]
b: [ 1 2 3 4 5 6 ]
c: [ [ a b ] [ c d ] [ e f ] [ g [ h ] ] ]
d: [ [ 1 2 ] [ 3 4 ] [ 5 6 ] [ 7 [ 8] ] ]
e: [ [now/time] [now/date] [ hello ] ]
f: [ [ "this is a string" ] [ now ] ]
> >>move/part a b 3
> == [ a b c 1 2 3 4 5 6]
insert/part b a 3
> >>move/deep c d 4 1
> == [ [ h ] [ 1 2 ] [ 3 4 ] [ 5 6 ] [ 7 [ 8] ] ]
insert/only d c/4/2
> >>move/only e f 2
> == [ [13-Aug-2003] [ "this is a string" ] [ now ] ]
insert/only f reduce e/2
results are B D and F
-L