how to check if an element is in array

seany seany at uni-bonn.de
Mon Nov 18 07:33:20 PST 2013


Is there a built in function in D to check if an element is a 
member of a (possibly multidimensional array?

say function(array, element). that returns to, if the element is 
in the array, (or even better, if the elements of the array are 
arrays themselves, then recursively checks if element is a 
memeber of one of those arrays, and also reports the parent 
array, of which element directly is a member of) ?


More information about the Digitalmars-d-learn mailing list