General

How to check if a singleton exists in a vector

Started by Softcore on .

Sign in or create an account to join the conversation.

4 posts

Hi
Figured you would sort something out ..
This has come up before - there is stuff in SLVector that would help

Various ways tp approach it on whether you want just whether it there, or where it is etc

A==K should return array of 0,1 on whether there is match
so sumof(A==K)>0 will return 0/1 if it matches . . .

Cheers
MM