fn allEqual(comptime T: type, slice: []const T, scalar: T) bool

Returns true if all elements in a slice are equal to the scalar value provided

Parameters

T: type,
slice: []const T,
scalar: T,