Lite-C equivalent of array.contains()?

Posted By: tolu619

Lite-C equivalent of array.contains()? - 06/04/14 01:24

I want to populate an array with certain values and later check to see if a specific value is in that array. I know I can do that with a for loop, but is there a function and can do it for me? Like array.contains() in C#?
Posted By: Superku

Re: Lite-C equivalent of array.contains()? - 06/04/14 03:32

No, a for loop is the way to go.
Posted By: tolu619

Re: Lite-C equivalent of array.contains()? - 06/05/14 09:10

Thanks man! You've responded to my questions more times than everyone else on this site put together. I'm definitely buying Superku when its done wink
Posted By: Superku

Re: Lite-C equivalent of array.contains()? - 06/05/14 09:31

Nice to hear, that makes at least 2 copies sold so far!
© 2024 lite-C Forums