Re: [OE vs Phix] assigning atom to a slice is different

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

Well, since i removed Eu and OE almost a year ago, and have not written any code since, i cannot look it up or run any code using any indexes. Let's say my memory is bad and i am a total idiot.

But i found this after a quick random look in the online manual:

Example 2: 
 
names = {"fred", "rob", "rob", "george", "mary"} 
location = rfind("rob", names) 
-- location is set to 3 
location = rfind("rob", names, -4) 
-- location is set to 2 

My appologies. Negative values are only sugar syntax in libs. But, i could be wrong again!

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

Search



Quick Links

User menu

Not signed in.

Misc Menu