double slicing possible?
- Posted by CHARN1407 at AOL.COM Jan 12, 2000
- 339 views
I was wondering if it was possible to slice two dimensions of a sequence in a single statement. Example: --begin code include file.e procedure testprint(sequence text) for i=1 to length(text) do puts(1,text[i]) end for end procedure sequence text1 text1 = { "Hi there", "Are you ", "New to E", "uphoria?" } procedure Main() testprint(text1[1..3][3..7]) --the interpreter seems to end the statement after the end procedure --[1..3] in this line and it stops --end code Is there any way to do this in a single statement? TIA, CHARN