[Implemented] SelectElement could return address

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

[Implemented] SelectElement could return address

Post by netmaestro »

Would be cleaner if instead of this:

Code: Select all

SelectElement(Numbers(), 3)
*thiselement = @Numbers()
we could do both at once with:

Code: Select all

*thiselement = SelectElement(Numbers(), 3)
BERESHEIT