double slicing possible?

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu