Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Newcomer difficulties with Rebol

From: chris-ross:gill at: 18-Dec-2007 1:38

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: