sily.array

Small array utils

Members

Aliases

repeat
alias repeat = fill

Fills and returns new array with values val up to size

Functions

fill
T[] fill(T val, size_t size)

Fills and returns new array with values val up to size

fill
T[] fill(T[] arr, T val)

Fills array with values val up to size if it's not 0

isOneOf
bool isOneOf(T val, T[] vals)

Returns true if val is one of vals

Meta