Monoid
Monoid
Bases: Semigroup[T]
, Protocol
A type is a Monoid if it is a Semigroup and also implements the empty method.
Source code in funclift/monoid.py
12 13 14 15 16 17 18 |
|
get_mempty(mcls)
summary
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mcls |
_type_
|
description |
required |
Returns:
Name | Type | Description |
---|---|---|
_type_ | description |
Source code in funclift/monoid.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|