HTH -- visualizing series:

 >> a: "12345"

    @  1  |  2  |  3  |  4  |  5  |

 >> z: "abcde"

    @  a  |  b  |  c  |  d  |  e  |

 >> b: find a 3  ; remember, 'find probably 'forms that 3

    |  1  |  2  @  3  |  4  |  5  |

 >> index? b

    1     2    (3)    4     5     6  -- index
    |  1  |  2  @  3  |  4  |  5  |

    3

 >> copy/part a b

    @  1  |  2  |  3  |  4  |  5  |
    |  1  |  2  @  3  |  4  |  5  |
    <----------->

 >> skip a 3  ; next next next

    |  1  |  2  |  3  @  4  |  5  |
    @-----1-----2-----3>

 >> copy/part a 3

    @  1  |  2  |  3  |  4  |  5  |
   <@-----1-----2-----3>

    |  1  |  2  |  3  |

 >> c: find/tail a 3

    |  1  |  2  |  3  @  4  |  5  |

 >> copy/part a c

    @  1  |  2  |  3  |  4  |  5  |
    |  1  |  2  |  3  @  4  |  5  |
    <----------------->

    |  1  |  2  |  3  |


On Dec 17, 2007, at 4:48 AM, Giuseppe Chillemi wrote:

>>> a: "12345"
>>>
>>> probe index? find a => 3
>>>
>>> probe copy/part a 3 => "123"
>>>
>>> probe copy/part a find a "3" => "12"

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to