Skip to content

Add FirstNonZero helper function #92

@xm1k3

Description

@xm1k3

Proposed Changes

  • func FirstNonZero[T comparable](inputs []T) (T, bool)

We need to verify that the slices we return have elements that are not zero.

Metadata

Metadata

Assignees

Labels

Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Type: EnhancementMost issues will probably ask for additions or changes.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions