Skip to content

Add memptyIfTrue/False functions #293

@vrom911

Description

@vrom911

memptyIfFalse should return mempty when the given predicate is unsatisfied (False), otherwise, return the default given value:

memptyIfFalse :: Monoid m => Bool -> m -> m

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestnewBring something new into library (add function or type or interface)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions