[REBOL] Re: Parsing data
From: greggirwin:starband at: 8-Oct-2001 12:21
Hi John, << In reading data from a file by lines, I use this code to parse and reorder the data line by line. So far -so good. The code works, but how can I make it reject the first two and last two elements in the data line, and rejoin the rest? >> Will this work for you?>> mid: func [s start len][return copy/part at s start len] >> tmp: [1 2 3 4 5 6]== [1 2 3 4 5 6]>> mid tmp 3 (length? tmp) - 4== [3 4] --Gregg