List!(int) list = List!(int).build(1, 2, 3); assert(list != null); assert(null != list); assert(list == [1, 2, 3]); assert([1, 2, 3] == list); assert(list == typeof(list).build(1, 2, 3)); assert(typeof(list).build(1, 2, 3) == list); import std.range : only; assert(list == only(1, 2, 3)); assert(only(1, 2, 3) == list);
Compares the contents of a list with another list, range or null.
Returns true if they are equal, false otherwise