Re: [OE vs Phix] assigning atom to a slice is different
- Posted by katsmeow Feb 15, 2018
- 1178 views
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!