removePrefix

Remove the given prefix from the given array.

Template Params: T = The type of the array element

T1[]
removePrefix
(
T1
T2
)
(
T1[] arr
,
in T2[] prefix
)

Parameters

arr T1[]

The array from which the prefix is to be removed

prefix T2[]

The prefix to remove

Return Value

Type: T1[]

A slice without the prefix if successful, the original array otherwise

Meta