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