Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Consider providing a concat function #14

@iliocatallo

Description

@iliocatallo

Hi,

It would be handy to have Validation provide a concat function. Something like:

const R = require('ramda');

const concat = (v1, v2) =>
    v1.cata({
        Failure: (f1) => v2.isSuccess ? v1 : v2.failureMap(R.concat(f1)),
        Success: (s1) => v2
    });

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions