这是indexloc提供的服务,不要输入任何密码
Skip to content

Add an XorM data type #660

@johnmcclean

Description

@johnmcclean

XorM is a sum type for AnyM monads which have the same data type, rather than being right biased it is biased toward the active monad.

e.g.

XorM<stream,optional,Integer> nums = XorM.stream(1,2,3);
int result = nums.map(i->i*2)
                 .foldLeft(Monoids.intSum);
//12

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions