startsWith

Check if the given array starts with the given prefix

Template Params: T = The type of the array element

bool
startsWith
(
T
)
(
in T[] arr
,
in T[] prefix
)

Parameters

arr T[]

The array to be tested

prefix T[]

The prefix to test for

Return Value

Type: bool

True if the array starts with the prefix, false otherwise

Meta