User | Kudos |
---|---|
13 | |
11 | |
3 | |
3 | |
3 |
When working with arrays, it is convention that search functions output -1 when element is not found. There are several functions using this logic. I find myself quite often using "Equal" function to compare this value to -1. While not being overly complicated, considering I do it very often, it would still be nice to have function "equal to -1" which would work similarily to "equal to 0", having only one output.
Current approach:
Suggestion ("equal to -1" icon is only illustratory):
Purpose: Speeding up programming routine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.