Sure, there's already IndexOf as a "magic method" for arrays that can be used
for this purpose, but "myArray.Contains(value)" is simpler and more clearly
communicates the intent of the code than "myArray.IndexOf(value) <> -1".
Original issue reported on code.google.com by masonwhe...@gmail.com on 8 Jul 2014 at 11:41
Original issue reported on code.google.com by
masonwhe...@gmail.com
on 8 Jul 2014 at 11:41