Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Type ¶
func NewType ¶
func NewType() Type
Example ¶
package main
import (
"fmt"
"github.com/calebcase/base/data/list"
"github.com/calebcase/base/data/monoid/all"
)
func main() {
t := all.NewType()
fmt.Println(
t.SAssoc(
true,
t.SAssoc(
t.MEmpty(),
false,
),
),
)
fmt.Println(
t.MConcat(
list.Map(
func(x int) bool {
return x%2 == 0
},
list.List[int]{2, 4, 6, 7, 8},
),
),
)
}
Output: false false
Click to show internal directories.
Click to hide internal directories.