Head¶
func Head[T any](slice []T) *T
Head returns a pointer to the first element of the slice. Returns nil if the slice is empty.
func Head[T any](slice []T) *T
Head returns a pointer to the first element of the slice. Returns nil if the slice is empty.