Since ArrayList and their managed friends are getting deprecated at some point,
I'm writing my own implementation of ArrayList, but with some other features I'm used to from other langs
One of them is being able to check if a list contains an item
Using std.mem.indexOfScalar(T, S.buffer.items, item) != null; works fine for scalars,
but I don't know how to deal with other cases, such as the arraylist holding []T instead of just T
Is there any feature in the stdlib that I could use to implement this string_list.contains("example"); functionality, in a way that also works for other generic []T?