Re: This does not jive

new topic     » goto parent     » topic index » view thread      » older message » newer message
EUWX said...

DerekParnell: In the above example,

    drawRoundRect(split (x)) 

or

    drawRoundRect(split (x , , 8)) 

should work, should it not?
I am not criticizing you; just trying to get the split function clearly in my mind.
I was not even aware of it till today.

It depends on what you're passing to split(), of course (and which split() you actually call!). split() is designed to split up a string (the regex version) or a sequence (sequence.e version) based on some delimiter.

With Derek's example, I don't see that you'd want to call split(). Did you have some other scenario in mind?

Perhaps play around with split() and see how it changes the sequence? I recommend using display() from std/console.e for examining this sort of thing easily. smile

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu