Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(t Trampoline) interface{}
Types ¶
type Continuation ¶
type Continuation interface {
Continue() Trampoline
}
type Done ¶
type Done struct {
Result interface{}
}
func (Done) FlatMap ¶
func (d Done) FlatMap(f func(interface{}) Trampoline) Trampoline
func (Done) Map ¶
func (d Done) Map(f func(interface{}) interface{}) Trampoline
func (Done) Then ¶
func (d Done) Then(f func(interface{})) Trampoline
type FlatMap ¶
type FlatMap struct { Subroutine Trampoline Continuation func(interface{}) Trampoline }
func (FlatMap) FlatMap ¶
func (m FlatMap) FlatMap(f func(interface{}) Trampoline) Trampoline
func (FlatMap) Map ¶
func (m FlatMap) Map(f func(interface{}) interface{}) Trampoline
func (FlatMap) Then ¶
func (m FlatMap) Then(f func(interface{})) Trampoline
type More ¶
type More func() Trampoline
func (More) Continue ¶
func (m More) Continue() Trampoline
func (More) FlatMap ¶
func (m More) FlatMap(f func(interface{}) Trampoline) Trampoline
func (More) Map ¶
func (m More) Map(f func(interface{}) interface{}) Trampoline
func (More) Then ¶
func (m More) Then(f func(interface{})) Trampoline
type Trampoline ¶
type Trampoline interface { Resume() interface{} FlatMap(f func(interface{}) Trampoline) Trampoline Map(f func(interface{}) interface{}) Trampoline Then(f func(interface{})) Trampoline }
func MapTrampoline ¶
func MapTrampoline(t Trampoline, f func(interface{}) interface{}) Trampoline
func ThenTrampoline ¶
func ThenTrampoline(t Trampoline, f func(interface{})) Trampoline
Click to show internal directories.
Click to hide internal directories.