Suggestion: Operator `in` for slices

Ola Fosheim Grøstad ola.fosheim.grostad at
Wed Dec 22 12:43:26 UTC 2021

On Tuesday, 21 December 2021 at 17:06:04 UTC, Nick Treleaven 
> Dennis is right that conceptually a key for an array is an 
> index. An array element value is the data associated with an 
> index.

What it is conceptually, depends on how you conceptualize it. The 
most common conceptualization of "in" is as a set operation and 
you cannot represent a set with array indexes.

More information about the Digitalmars-d mailing list