Looks up value a in the list, then returns the element equal with it. Returns E.init if not found.
Intended for use with structs and classes that can interface with the type of T through the cmp and equal
functions's overrides.
structSortedList(E, alias cmp = "a < b", bool allowDuplicates = true, alias equal = "a == b")
Looks up value a in the list, then returns the element equal with it. Returns E.init if not found. Intended for use with structs and classes that can interface with the type of T through the cmp and equal functions's overrides.