Documentation ¶
Index ¶
- Variables
- func Compose(f func(x Any) Any) func(func(Any) Any) func(Any) Any
- func Constant(x Any) func() Any
- func Constant1(x Any) func(Any) Any
- func Cont(thunk func() Result) cont
- func Get() func(Any) StateT
- func Identity() func(Any) Any
- func Merge(a StateT) func(Any) StateT
- type Any
- type Cofree
- type Cons
- func (x Cons) Chain(f func(Any) List) List
- func (x Cons) Concat(y List) List
- func (x Cons) Filter(f func(Any) bool) List
- func (x Cons) Find(f func(Any) bool) Option
- func (x Cons) FoldLeft(v Any, f func(Any, Any) Any) Any
- func (x Cons) GroupBy(f func(Any) Any) List
- func (x Cons) Head() Option
- func (x Cons) Index(index uint) Option
- func (x Cons) Last() Option
- func (x Cons) Map(f func(Any) Any) List
- func (x Cons) Partition(f func(Any) bool) Tuple2
- func (x Cons) ReduceLeft(f func(Any, Any) Any) Option
- func (x Cons) Reverse() List
- func (x Cons) Size() int
- func (x Cons) Tail() List
- func (x Cons) Zip(y List) List
- type Either
- type Empty
- type IO
- type Left
- type List
- type Nil
- func (x Nil) Chain(f func(Any) List) List
- func (x Nil) Concat(y List) List
- func (x Nil) Filter(func(Any) bool) List
- func (x Nil) Find(f func(Any) bool) Option
- func (x Nil) FoldLeft(v Any, f func(Any, Any) Any) Any
- func (x Nil) GroupBy(f func(Any) Any) List
- func (x Nil) Head() Option
- func (x Nil) Index(index uint) Option
- func (x Nil) Last() Option
- func (x Nil) Map(f func(Any) Any) List
- func (x Nil) Partition(f func(Any) bool) Tuple2
- func (x Nil) ReduceLeft(f func(Any, Any) Any) Option
- func (x Nil) Reverse() List
- func (x Nil) Size() int
- func (x Nil) Tail() List
- func (x Nil) Zip(a List) List
- type None
- type Option
- type Promise
- type Result
- type Right
- type Some
- type StateT
- type Tree
- type TreeNil
- type TreeNode
- type Tuple2
- type Tuple3
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Either_ = either{}
)
View Source
var (
IO_ = io{}
)
View Source
var (
List_ = list{}
)
View Source
var (
Option_ = option{}
)
View Source
var (
Promise_ = promise{}
)
View Source
var (
StateT_ = stateT{}
)
View Source
var (
Tree_ = tree{}
)
View Source
var (
Walker_ = walker{}
)
View Source
var (
Writer_ = writer{}
)
Functions ¶
Types ¶
type Either ¶
type List ¶
type List interface { Head() Option Last() Option Tail() List Chain(func(Any) List) List Map(func(Any) Any) List Concat(List) List Filter(func(Any) bool) List Find(func(Any) bool) Option FoldLeft(Any, func(Any, Any) Any) Any GroupBy(func(Any) Any) List Index(uint) Option Partition(func(Any) bool) Tuple2 ReduceLeft(func(Any, Any) Any) Option Reverse() List Size() int Zip(List) List }
type Option ¶
type Tree ¶
type TreeNode ¶
type TreeNode struct {
// contains filtered or unexported fields
}
func NewTreeNode ¶
Click to show internal directories.
Click to hide internal directories.