Skip to content

A way to build from an A and a Vector #7

@AlistairB

Description

@AlistairB

Hi,

Would it make sense to add some equivalent of :| for NonEmpty but for NonEmptyVector? I suppose in this case it would need to be a function, not a data constructor. ie. something like consV :: a -> Vector a -> NonEmptyVector a.

I suppose an equivalent snocV might also be useful.

I'd be happy to open a PR if this is all desirable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions