test

package
v0.0.0-...-35dab5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var AddressListLessFunc = func(i, j int) bool {
	panic("Not implemented")
}

implementation of sort.Interface

View Source
var CatListLessFunc = func(i, j int) bool {
	panic("Not implemented")
}

implementation of sort.Interface

View Source
var FloatListLessFunc = func(i, j int) bool {
	panic("Not implemented")
}

implementation of sort.Interface

View Source
var IntListLessFunc = func(i, j int) bool {
	panic("Not implemented")
}

implementation of sort.Interface

View Source
var PersonListLessFunc = func(i, j int) bool {
	panic("Not implemented")
}

implementation of sort.Interface

View Source
var StringListLessFunc = func(i, j int) bool {
	panic("Not implemented")
}

implementation of sort.Interface

Functions

This section is empty.

Types

type Address

type Address struct {
	Street      string
	HouseNumber int
	Zip         string
}

type AddressList

type AddressList []Address

func EmptyAddressList

func EmptyAddressList() AddressList

func (AddressList) Append

func (rcv AddressList) Append(x Address) AddressList

append an element to the end of the list

func (AddressList) AppendAll

func (rcv AddressList) AppendAll(xs ...Address) AddressList

append elements to the end of the list

func (AddressList) AppendSlice

func (rcv AddressList) AppendSlice(xs []Address) AddressList

append a slice to the end of the list

func (AddressList) Apply

func (rcv AddressList) Apply(x int) Address

returns the element at the index

func (AddressList) ApplyOrElse

func (rcv AddressList) ApplyOrElse(x int, fn func() Address) Address

func (AddressList) Concat

func (rcv AddressList) Concat(xs ...Address) AddressList

alias for AppendAll

func (AddressList) ConcatSlice

func (rcv AddressList) ConcatSlice(xs []Address) AddressList

alias for AppendSlice

func (AddressList) Contains

func (rcv AddressList) Contains(a Address) bool

func (AddressList) ContainsNot

func (rcv AddressList) ContainsNot(a Address) bool

func (AddressList) Count

func (rcv AddressList) Count() int

func (AddressList) Distinct

func (rcv AddressList) Distinct() AddressList

func (AddressList) DropWhile

func (rcv AddressList) DropWhile(fn func(Address) bool) AddressList

alias for FilterNot

func (AddressList) Fill

func (rcv AddressList) Fill(num int, a Address) AddressList

create a new list prefilled

func (AddressList) Filter

func (rcv AddressList) Filter(fn func(Address) bool) AddressList

Selects all elements of this list which satisfy a predicate.

func (AddressList) FilterNot

func (rcv AddressList) FilterNot(fn func(Address) bool) AddressList

Selects all elements of this list which do not satisfy a predicate.

func (AddressList) FlatMapToAddressList

func (rcv AddressList) FlatMapToAddressList(fn func(Address) AddressList) AddressList

func (AddressList) FoldLeft

func (rcv AddressList) FoldLeft(zero Address, fn func(acc Address, x Address) Address) Address

func (AddressList) FoldRight

func (rcv AddressList) FoldRight(zero Address, fn func(acc Address, x Address) Address) Address

func (AddressList) ForEach

func (rcv AddressList) ForEach(fn func(Address))

func (AddressList) ForEachP

func (rcv AddressList) ForEachP(fn func(Address))

func (AddressList) ForEachPP

func (rcv AddressList) ForEachPP(parallelism int, fn func(Address))

func (AddressList) ForEachPPP

func (rcv AddressList) ForEachPPP(parallelism int, fn func(Address), progressFn func())

func (AddressList) ForEachWithIndex

func (rcv AddressList) ForEachWithIndex(fn func(int, Address))

func (AddressList) ForEachWithLastFlag

func (rcv AddressList) ForEachWithLastFlag(fn func(bool, Address))

func (AddressList) Head

func (rcv AddressList) Head() Address

panics when the list is empty

func (AddressList) HeadOption

func (rcv AddressList) HeadOption() AddressOption

func (AddressList) Init

func (rcv AddressList) Init() AddressList

returns the initial part of the collection, without the last element

func (AddressList) Intersect

func (rcv AddressList) Intersect(xs AddressList) AddressList

return the intersection of the list and another list

func (AddressList) Intersperse

func (rcv AddressList) Intersperse(a Address) AddressList

func (AddressList) IsDefinedAt

func (rcv AddressList) IsDefinedAt(x int) bool

tests whether this sequence contains the given index

func (AddressList) IsEmpty

func (rcv AddressList) IsEmpty() bool

func (AddressList) IsNotEmpty

func (rcv AddressList) IsNotEmpty() bool

func (AddressList) Last

func (rcv AddressList) Last() Address

func (AddressList) Len

func (rcv AddressList) Len() int

implementation of 'sort.Interface'

func (AddressList) Less

func (rcv AddressList) Less(i, j int) bool

implementation of sort.Interface

func (AddressList) MapToAddress

func (rcv AddressList) MapToAddress(fn func(Address) Address) AddressList

func (AddressList) MapToAddressP

func (rcv AddressList) MapToAddressP(mapFn func(Address) Address) AddressList

func (AddressList) MapToAddressPP

func (rcv AddressList) MapToAddressPP(parallelism int, mapFn func(Address) Address) AddressList

func (AddressList) MapToAddressPPP

func (rcv AddressList) MapToAddressPPP(parallelism int, mapFn func(Address) Address, progressFn func()) AddressList

func (AddressList) MapToAddressWithIndex

func (rcv AddressList) MapToAddressWithIndex(fn func(int, Address) Address) AddressList

func (AddressList) MkString

func (rcv AddressList) MkString(fn func(Address) string) String

func (AddressList) Partition

func (rcv AddressList) Partition(fn func(Address) bool) (AddressList, AddressList)

func (AddressList) RangeOf

func (rcv AddressList) RangeOf(from int, to int, fn func(int) Address) AddressList

func (AddressList) Reverse

func (rcv AddressList) Reverse() AddressList

func (AddressList) Slice

func (rcv AddressList) Slice(from int, to int) AddressList

func (AddressList) Sort

func (rcv AddressList) Sort(fn func(i Address, j Address) bool) AddressList

i and j are two objects that need to be compared, and based on that comparison the List will be sorted

func (AddressList) Swap

func (rcv AddressList) Swap(i, j int)

implementation of 'sort.Interface'

func (AddressList) Tablulate

func (rcv AddressList) Tablulate(num int, fn func(int) Address) AddressList

func (AddressList) Tail

func (rcv AddressList) Tail() AddressList

The rest of the collection without its first element.

func (AddressList) TakeWhile

func (rcv AddressList) TakeWhile(fn func(Address) bool) AddressList

alias for Filter

func (AddressList) ToSlice

func (rcv AddressList) ToSlice() []Address

returns a slice of Address

type AddressNone

type AddressNone struct {
}

func (AddressNone) Apply2

func (rcv AddressNone) Apply2(a AddressOption, fn func(Address, Address) Address) AddressOption

func (AddressNone) Apply3

func (AddressNone) Apply4

func (AddressNone) Contains

func (rcv AddressNone) Contains(a Address) bool

func (AddressNone) ContainsNot

func (rcv AddressNone) ContainsNot(a Address) bool

func (AddressNone) Count

func (rcv AddressNone) Count() int

func (AddressNone) FoldToString

func (rcv AddressNone) FoldToString(zero string, fn func(Address) string) string

func (AddressNone) ForEach

func (rcv AddressNone) ForEach(fn func(Address))

func (AddressNone) Get

func (rcv AddressNone) Get() Address

panics when called

func (AddressNone) GetOrElse

func (rcv AddressNone) GetOrElse(fn func() Address) Address

func (AddressNone) IsDefined

func (rcv AddressNone) IsDefined() bool

func (AddressNone) IsEmpty

func (rcv AddressNone) IsEmpty() bool

func (AddressNone) IsNotEmpty

func (rcv AddressNone) IsNotEmpty() bool

type AddressOption

type AddressOption interface {
	Get() Address
	GetOrElse(fn func() Address) Address
	ForEach(fn func(Address))
	IsEmpty() bool
	IsNotEmpty() bool
	IsDefined() bool
	Count() int
	Contains(a Address) bool
	ContainsNot(a Address) bool
	FoldToString(zero string, fn func(Address) string) string
	Apply2(a AddressOption, fn func(Address, Address) Address) AddressOption
	Apply3(a AddressOption, b AddressOption, fn func(Address, Address, Address) Address) AddressOption
	Apply4(a AddressOption, b AddressOption, c AddressOption, fn func(Address, Address, Address, Address) Address) AddressOption
}

func OptionOfAddress

func OptionOfAddress(a *Address) AddressOption

type AddressSome

type AddressSome struct {
	// contains filtered or unexported fields
}

func (AddressSome) Apply2

func (rcv AddressSome) Apply2(a AddressOption, fn func(Address, Address) Address) AddressOption

func (AddressSome) Apply3

func (AddressSome) Apply4

func (AddressSome) Contains

func (rcv AddressSome) Contains(a Address) bool

func (AddressSome) ContainsNot

func (rcv AddressSome) ContainsNot(a Address) bool

func (AddressSome) Count

func (rcv AddressSome) Count() int

func (AddressSome) FoldToString

func (rcv AddressSome) FoldToString(zero string, fn func(Address) string) string

func (AddressSome) ForEach

func (rcv AddressSome) ForEach(fn func(Address))

func (AddressSome) Get

func (rcv AddressSome) Get() Address

some

func (AddressSome) GetOrElse

func (rcv AddressSome) GetOrElse(fn func() Address) Address

func (AddressSome) IsDefined

func (rcv AddressSome) IsDefined() bool

alias

func (AddressSome) IsEmpty

func (rcv AddressSome) IsEmpty() bool

func (AddressSome) IsNotEmpty

func (rcv AddressSome) IsNotEmpty() bool

type Cat

type Cat struct {
	Name string
	Age  int
}

type CatList

type CatList []Cat

func EmptyCatList

func EmptyCatList() CatList

func (CatList) Append

func (rcv CatList) Append(x Cat) CatList

append an element to the end of the list

func (CatList) AppendAll

func (rcv CatList) AppendAll(xs ...Cat) CatList

append elements to the end of the list

func (CatList) AppendSlice

func (rcv CatList) AppendSlice(xs []Cat) CatList

append a slice to the end of the list

func (CatList) Apply

func (rcv CatList) Apply(x int) Cat

returns the element at the index

func (CatList) ApplyOrElse

func (rcv CatList) ApplyOrElse(x int, fn func() Cat) Cat

func (CatList) Concat

func (rcv CatList) Concat(xs ...Cat) CatList

alias for AppendAll

func (CatList) ConcatSlice

func (rcv CatList) ConcatSlice(xs []Cat) CatList

alias for AppendSlice

func (CatList) Contains

func (rcv CatList) Contains(a Cat) bool

func (CatList) ContainsNot

func (rcv CatList) ContainsNot(a Cat) bool

func (CatList) Count

func (rcv CatList) Count() int

func (CatList) Distinct

func (rcv CatList) Distinct() CatList

func (CatList) DropWhile

func (rcv CatList) DropWhile(fn func(Cat) bool) CatList

alias for FilterNot

func (CatList) Fill

func (rcv CatList) Fill(num int, a Cat) CatList

create a new list prefilled

func (CatList) Filter

func (rcv CatList) Filter(fn func(Cat) bool) CatList

Selects all elements of this list which satisfy a predicate.

func (CatList) FilterNot

func (rcv CatList) FilterNot(fn func(Cat) bool) CatList

Selects all elements of this list which do not satisfy a predicate.

func (CatList) FlatMapToCatList

func (rcv CatList) FlatMapToCatList(fn func(Cat) CatList) CatList

func (CatList) FoldLeft

func (rcv CatList) FoldLeft(zero Cat, fn func(acc Cat, x Cat) Cat) Cat

func (CatList) FoldRight

func (rcv CatList) FoldRight(zero Cat, fn func(acc Cat, x Cat) Cat) Cat

func (CatList) ForEach

func (rcv CatList) ForEach(fn func(Cat))

func (CatList) ForEachP

func (rcv CatList) ForEachP(fn func(Cat))

func (CatList) ForEachPP

func (rcv CatList) ForEachPP(parallelism int, fn func(Cat))

func (CatList) ForEachPPP

func (rcv CatList) ForEachPPP(parallelism int, fn func(Cat), progressFn func())

func (CatList) ForEachWithIndex

func (rcv CatList) ForEachWithIndex(fn func(int, Cat))

func (CatList) ForEachWithLastFlag

func (rcv CatList) ForEachWithLastFlag(fn func(bool, Cat))

func (CatList) Head

func (rcv CatList) Head() Cat

panics when the list is empty

func (CatList) HeadOption

func (rcv CatList) HeadOption() CatOption

func (CatList) Init

func (rcv CatList) Init() CatList

returns the initial part of the collection, without the last element

func (CatList) Intersect

func (rcv CatList) Intersect(xs CatList) CatList

return the intersection of the list and another list

func (CatList) Intersperse

func (rcv CatList) Intersperse(a Cat) CatList

func (CatList) IsDefinedAt

func (rcv CatList) IsDefinedAt(x int) bool

tests whether this sequence contains the given index

func (CatList) IsEmpty

func (rcv CatList) IsEmpty() bool

func (CatList) IsNotEmpty

func (rcv CatList) IsNotEmpty() bool

func (CatList) Last

func (rcv CatList) Last() Cat

func (CatList) Len

func (rcv CatList) Len() int

implementation of 'sort.Interface'

func (CatList) Less

func (rcv CatList) Less(i, j int) bool

implementation of sort.Interface

func (CatList) MapToCat

func (rcv CatList) MapToCat(fn func(Cat) Cat) CatList

func (CatList) MapToCatP

func (rcv CatList) MapToCatP(mapFn func(Cat) Cat) CatList

func (CatList) MapToCatPP

func (rcv CatList) MapToCatPP(parallelism int, mapFn func(Cat) Cat) CatList

func (CatList) MapToCatPPP

func (rcv CatList) MapToCatPPP(parallelism int, mapFn func(Cat) Cat, progressFn func()) CatList

func (CatList) MapToCatWithIndex

func (rcv CatList) MapToCatWithIndex(fn func(int, Cat) Cat) CatList

func (CatList) MkString

func (rcv CatList) MkString(fn func(Cat) string) String

func (CatList) Partition

func (rcv CatList) Partition(fn func(Cat) bool) (CatList, CatList)

func (CatList) RangeOf

func (rcv CatList) RangeOf(from int, to int, fn func(int) Cat) CatList

func (CatList) Reverse

func (rcv CatList) Reverse() CatList

func (CatList) Slice

func (rcv CatList) Slice(from int, to int) CatList

func (CatList) Sort

func (rcv CatList) Sort(fn func(i Cat, j Cat) bool) CatList

i and j are two objects that need to be compared, and based on that comparison the List will be sorted

func (CatList) Swap

func (rcv CatList) Swap(i, j int)

implementation of 'sort.Interface'

func (CatList) Tablulate

func (rcv CatList) Tablulate(num int, fn func(int) Cat) CatList

func (CatList) Tail

func (rcv CatList) Tail() CatList

The rest of the collection without its first element.

func (CatList) TakeWhile

func (rcv CatList) TakeWhile(fn func(Cat) bool) CatList

alias for Filter

func (CatList) ToSlice

func (rcv CatList) ToSlice() []Cat

returns a slice of Cat

type CatNone

type CatNone struct {
}

func (CatNone) Apply2

func (rcv CatNone) Apply2(a CatOption, fn func(Cat, Cat) Cat) CatOption

func (CatNone) Apply3

func (rcv CatNone) Apply3(a CatOption, b CatOption, fn func(Cat, Cat, Cat) Cat) CatOption

func (CatNone) Apply4

func (rcv CatNone) Apply4(a CatOption, b CatOption, c CatOption, fn func(Cat, Cat, Cat, Cat) Cat) CatOption

func (CatNone) Contains

func (rcv CatNone) Contains(a Cat) bool

func (CatNone) ContainsNot

func (rcv CatNone) ContainsNot(a Cat) bool

func (CatNone) Count

func (rcv CatNone) Count() int

func (CatNone) FoldToString

func (rcv CatNone) FoldToString(zero string, fn func(Cat) string) string

func (CatNone) ForEach

func (rcv CatNone) ForEach(fn func(Cat))

func (CatNone) Get

func (rcv CatNone) Get() Cat

panics when called

func (CatNone) GetOrElse

func (rcv CatNone) GetOrElse(fn func() Cat) Cat

func (CatNone) IsDefined

func (rcv CatNone) IsDefined() bool

func (CatNone) IsEmpty

func (rcv CatNone) IsEmpty() bool

func (CatNone) IsNotEmpty

func (rcv CatNone) IsNotEmpty() bool

type CatOption

type CatOption interface {
	Get() Cat
	GetOrElse(fn func() Cat) Cat
	ForEach(fn func(Cat))
	IsEmpty() bool
	IsNotEmpty() bool
	IsDefined() bool
	Count() int
	Contains(a Cat) bool
	ContainsNot(a Cat) bool
	FoldToString(zero string, fn func(Cat) string) string
	Apply2(a CatOption, fn func(Cat, Cat) Cat) CatOption
	Apply3(a CatOption, b CatOption, fn func(Cat, Cat, Cat) Cat) CatOption
	Apply4(a CatOption, b CatOption, c CatOption, fn func(Cat, Cat, Cat, Cat) Cat) CatOption
}

func OptionOfCat

func OptionOfCat(a *Cat) CatOption

type CatSome

type CatSome struct {
	// contains filtered or unexported fields
}

func (CatSome) Apply2

func (rcv CatSome) Apply2(a CatOption, fn func(Cat, Cat) Cat) CatOption

func (CatSome) Apply3

func (rcv CatSome) Apply3(a CatOption, b CatOption, fn func(Cat, Cat, Cat) Cat) CatOption

func (CatSome) Apply4

func (rcv CatSome) Apply4(a CatOption, b CatOption, c CatOption, fn func(Cat, Cat, Cat, Cat) Cat) CatOption

func (CatSome) Contains

func (rcv CatSome) Contains(a Cat) bool

func (CatSome) ContainsNot

func (rcv CatSome) ContainsNot(a Cat) bool

func (CatSome) Count

func (rcv CatSome) Count() int

func (CatSome) FoldToString

func (rcv CatSome) FoldToString(zero string, fn func(Cat) string) string

func (CatSome) ForEach

func (rcv CatSome) ForEach(fn func(Cat))

func (CatSome) Get

func (rcv CatSome) Get() Cat

some

func (CatSome) GetOrElse

func (rcv CatSome) GetOrElse(fn func() Cat) Cat

func (CatSome) IsDefined

func (rcv CatSome) IsDefined() bool

alias

func (CatSome) IsEmpty

func (rcv CatSome) IsEmpty() bool

func (CatSome) IsNotEmpty

func (rcv CatSome) IsNotEmpty() bool

type Float

type Float float64

func MaxFloat

func MaxFloat() Float

func MinFloat

func MinFloat() Float

func ToFloat

func ToFloat(x float64) Float

func ZeroFloat

func ZeroFloat() Float

func (Float) Abs

func (rcv Float) Abs() Float

func (Float) Acos

func (rcv Float) Acos() Float

Acosh returns the inverse hyperbolic cosine of x.

func (Float) Add

func (rcv Float) Add(x Float) Float

func (Float) Apply

func (rcv Float) Apply(fn func(float64) float64) Float

func (Float) ApplyF

func (rcv Float) ApplyF(fn func(Float) Float) Float

func (Float) Asin

func (rcv Float) Asin() Float

Asin returns the arcsine, in radians, of x.

func (Float) Atan

func (rcv Float) Atan() Float

Returns radian angle between -pi/2 and +pi/2 whose tangent is x.

func (Float) Cbrt

func (rcv Float) Cbrt() Float

Cbrt returns the cube root of x.

func (Float) Ceil

func (rcv Float) Ceil() Float

Ceil returns the least integer value greater than or equal to x.

func (Float) Cos

func (rcv Float) Cos() Float

func (Float) Dim

func (rcv Float) Dim(y Float) Float

Dim returns the maximum of x-y or 0.

func (Float) E

func (rcv Float) E() Float

func (Float) Floor

func (rcv Float) Floor() Float

Floor returns the greatest integer value less than or equal to x.

func (Float) Log

func (rcv Float) Log() Float

Log returns the natural logarithm of x.

func (Float) Log10

func (rcv Float) Log10() Float

Log10 returns the decimal logarithm of x.

func (Float) Log1p

func (rcv Float) Log1p() Float

Log1p returns the natural logarithm of 1 plus its argument x.

func (Float) Log2

func (rcv Float) Log2() Float

Log2 returns the binary logarithm of x.

func (Float) Max

func (rcv Float) Max(y Float) Float

Max returns the larger of x or y.

func (Float) Min

func (rcv Float) Min(y Float) Float

Min returns the smaller of x or y.

func (Float) MkString

func (rcv Float) MkString() String

func (Float) Multiply

func (rcv Float) Multiply(x Float) Float

func (Float) Phi

func (rcv Float) Phi() Float

func (Float) Pi

func (rcv Float) Pi() Float

func (Float) Pow

func (rcv Float) Pow(y Float) Float

func (Float) Pow10

func (rcv Float) Pow10(n int) Float

Pow10 returns 10**n, the base-10 exponential of n.

func (Float) Println

func (rcv Float) Println()

func (Float) Remainder

func (rcv Float) Remainder(y Float) Float

Remainder returns the IEEE 754 floating-point remainder of x/y.

func (Float) Sin

func (rcv Float) Sin() Float

func (Float) Sincos

func (rcv Float) Sincos() (Float, Float)

Sincos returns Sin(x), Cos(x).

func (Float) Sqrt

func (rcv Float) Sqrt() Float

Sqrt returns the square root of x.

func (Float) Subtract

func (rcv Float) Subtract(x Float) Float

func (Float) Tan

func (rcv Float) Tan() Float

Tan returns the tangent of the radian argument x.

func (Float) Unwrap

func (rcv Float) Unwrap() float64

type FloatList

type FloatList []Float

func EmptyFloatList

func EmptyFloatList() FloatList

func (FloatList) Append

func (rcv FloatList) Append(x Float) FloatList

append an element to the end of the list

func (FloatList) AppendAll

func (rcv FloatList) AppendAll(xs ...Float) FloatList

append elements to the end of the list

func (FloatList) AppendSlice

func (rcv FloatList) AppendSlice(xs []Float) FloatList

append a slice to the end of the list

func (FloatList) Apply

func (rcv FloatList) Apply(x int) Float

returns the element at the index

func (FloatList) ApplyOrElse

func (rcv FloatList) ApplyOrElse(x int, fn func() Float) Float

func (FloatList) Concat

func (rcv FloatList) Concat(xs ...Float) FloatList

alias for AppendAll

func (FloatList) ConcatSlice

func (rcv FloatList) ConcatSlice(xs []Float) FloatList

alias for AppendSlice

func (FloatList) Contains

func (rcv FloatList) Contains(a Float) bool

func (FloatList) ContainsNot

func (rcv FloatList) ContainsNot(a Float) bool

func (FloatList) Count

func (rcv FloatList) Count() int

func (FloatList) Distinct

func (rcv FloatList) Distinct() FloatList

func (FloatList) DropWhile

func (rcv FloatList) DropWhile(fn func(Float) bool) FloatList

alias for FilterNot

func (FloatList) Fill

func (rcv FloatList) Fill(num int, a Float) FloatList

create a new list prefilled

func (FloatList) Filter

func (rcv FloatList) Filter(fn func(Float) bool) FloatList

Selects all elements of this list which satisfy a predicate.

func (FloatList) FilterNot

func (rcv FloatList) FilterNot(fn func(Float) bool) FloatList

Selects all elements of this list which do not satisfy a predicate.

func (FloatList) FlatMapToFloatList

func (rcv FloatList) FlatMapToFloatList(fn func(Float) FloatList) FloatList

func (FloatList) FoldLeft

func (rcv FloatList) FoldLeft(zero Float, fn func(acc Float, x Float) Float) Float

func (FloatList) FoldRight

func (rcv FloatList) FoldRight(zero Float, fn func(acc Float, x Float) Float) Float

func (FloatList) ForEach

func (rcv FloatList) ForEach(fn func(Float))

func (FloatList) ForEachP

func (rcv FloatList) ForEachP(fn func(Float))

func (FloatList) ForEachPP

func (rcv FloatList) ForEachPP(parallelism int, fn func(Float))

func (FloatList) ForEachPPP

func (rcv FloatList) ForEachPPP(parallelism int, fn func(Float), progressFn func())

func (FloatList) ForEachWithIndex

func (rcv FloatList) ForEachWithIndex(fn func(int, Float))

func (FloatList) ForEachWithLastFlag

func (rcv FloatList) ForEachWithLastFlag(fn func(bool, Float))

func (FloatList) Head

func (rcv FloatList) Head() Float

panics when the list is empty

func (FloatList) HeadOption

func (rcv FloatList) HeadOption() FloatOption

func (FloatList) Init

func (rcv FloatList) Init() FloatList

returns the initial part of the collection, without the last element

func (FloatList) Intersect

func (rcv FloatList) Intersect(xs FloatList) FloatList

return the intersection of the list and another list

func (FloatList) Intersperse

func (rcv FloatList) Intersperse(a Float) FloatList

func (FloatList) IsDefinedAt

func (rcv FloatList) IsDefinedAt(x int) bool

tests whether this sequence contains the given index

func (FloatList) IsEmpty

func (rcv FloatList) IsEmpty() bool

func (FloatList) IsNotEmpty

func (rcv FloatList) IsNotEmpty() bool

func (FloatList) Last

func (rcv FloatList) Last() Float

func (FloatList) Len

func (rcv FloatList) Len() int

implementation of 'sort.Interface'

func (FloatList) Less

func (rcv FloatList) Less(i, j int) bool

implementation of sort.Interface

func (FloatList) MapToFloat

func (rcv FloatList) MapToFloat(fn func(Float) Float) FloatList

func (FloatList) MapToFloatP

func (rcv FloatList) MapToFloatP(mapFn func(Float) Float) FloatList

func (FloatList) MapToFloatPP

func (rcv FloatList) MapToFloatPP(parallelism int, mapFn func(Float) Float) FloatList

func (FloatList) MapToFloatPPP

func (rcv FloatList) MapToFloatPPP(parallelism int, mapFn func(Float) Float, progressFn func()) FloatList

func (FloatList) MapToFloatWithIndex

func (rcv FloatList) MapToFloatWithIndex(fn func(int, Float) Float) FloatList

func (FloatList) MkString

func (rcv FloatList) MkString(fn func(Float) string) String

func (FloatList) Partition

func (rcv FloatList) Partition(fn func(Float) bool) (FloatList, FloatList)

func (FloatList) RangeOf

func (rcv FloatList) RangeOf(from int, to int, fn func(int) Float) FloatList

func (FloatList) Reverse

func (rcv FloatList) Reverse() FloatList

func (FloatList) Slice

func (rcv FloatList) Slice(from int, to int) FloatList

func (FloatList) Sort

func (rcv FloatList) Sort(fn func(i Float, j Float) bool) FloatList

i and j are two objects that need to be compared, and based on that comparison the List will be sorted

func (FloatList) Swap

func (rcv FloatList) Swap(i, j int)

implementation of 'sort.Interface'

func (FloatList) Tablulate

func (rcv FloatList) Tablulate(num int, fn func(int) Float) FloatList

func (FloatList) Tail

func (rcv FloatList) Tail() FloatList

The rest of the collection without its first element.

func (FloatList) TakeWhile

func (rcv FloatList) TakeWhile(fn func(Float) bool) FloatList

alias for Filter

func (FloatList) ToSlice

func (rcv FloatList) ToSlice() []Float

returns a slice of Float

type FloatNone

type FloatNone struct {
}

func (FloatNone) Apply2

func (rcv FloatNone) Apply2(a FloatOption, fn func(Float, Float) Float) FloatOption

func (FloatNone) Apply3

func (rcv FloatNone) Apply3(a FloatOption, b FloatOption, fn func(Float, Float, Float) Float) FloatOption

func (FloatNone) Apply4

func (FloatNone) Contains

func (rcv FloatNone) Contains(a Float) bool

func (FloatNone) ContainsNot

func (rcv FloatNone) ContainsNot(a Float) bool

func (FloatNone) Count

func (rcv FloatNone) Count() int

func (FloatNone) FoldToString

func (rcv FloatNone) FoldToString(zero string, fn func(Float) string) string

func (FloatNone) ForEach

func (rcv FloatNone) ForEach(fn func(Float))

func (FloatNone) Get

func (rcv FloatNone) Get() Float

panics when called

func (FloatNone) GetOrElse

func (rcv FloatNone) GetOrElse(fn func() Float) Float

func (FloatNone) IsDefined

func (rcv FloatNone) IsDefined() bool

func (FloatNone) IsEmpty

func (rcv FloatNone) IsEmpty() bool

func (FloatNone) IsNotEmpty

func (rcv FloatNone) IsNotEmpty() bool

type FloatOption

type FloatOption interface {
	Get() Float
	GetOrElse(fn func() Float) Float
	ForEach(fn func(Float))
	IsEmpty() bool
	IsNotEmpty() bool
	IsDefined() bool
	Count() int
	Contains(a Float) bool
	ContainsNot(a Float) bool
	FoldToString(zero string, fn func(Float) string) string
	Apply2(a FloatOption, fn func(Float, Float) Float) FloatOption
	Apply3(a FloatOption, b FloatOption, fn func(Float, Float, Float) Float) FloatOption
	Apply4(a FloatOption, b FloatOption, c FloatOption, fn func(Float, Float, Float, Float) Float) FloatOption
}

func OptionOfFloat

func OptionOfFloat(a *Float) FloatOption

type FloatSome

type FloatSome struct {
	// contains filtered or unexported fields
}

func (FloatSome) Apply2

func (rcv FloatSome) Apply2(a FloatOption, fn func(Float, Float) Float) FloatOption

func (FloatSome) Apply3

func (rcv FloatSome) Apply3(a FloatOption, b FloatOption, fn func(Float, Float, Float) Float) FloatOption

func (FloatSome) Apply4

func (FloatSome) Contains

func (rcv FloatSome) Contains(a Float) bool

func (FloatSome) ContainsNot

func (rcv FloatSome) ContainsNot(a Float) bool

func (FloatSome) Count

func (rcv FloatSome) Count() int

func (FloatSome) FoldToString

func (rcv FloatSome) FoldToString(zero string, fn func(Float) string) string

func (FloatSome) ForEach

func (rcv FloatSome) ForEach(fn func(Float))

func (FloatSome) Get

func (rcv FloatSome) Get() Float

some

func (FloatSome) GetOrElse

func (rcv FloatSome) GetOrElse(fn func() Float) Float

func (FloatSome) IsDefined

func (rcv FloatSome) IsDefined() bool

alias

func (FloatSome) IsEmpty

func (rcv FloatSome) IsEmpty() bool

func (FloatSome) IsNotEmpty

func (rcv FloatSome) IsNotEmpty() bool

type IntList

type IntList []int

func EmptyIntList

func EmptyIntList() IntList

func (IntList) Append

func (rcv IntList) Append(x int) IntList

append an element to the end of the list

func (IntList) AppendAll

func (rcv IntList) AppendAll(xs ...int) IntList

append elements to the end of the list

func (IntList) AppendSlice

func (rcv IntList) AppendSlice(xs []int) IntList

append a slice to the end of the list

func (IntList) Apply

func (rcv IntList) Apply(x int) int

returns the element at the index

func (IntList) ApplyOrElse

func (rcv IntList) ApplyOrElse(x int, fn func() int) int

func (IntList) Concat

func (rcv IntList) Concat(xs ...int) IntList

alias for AppendAll

func (IntList) ConcatSlice

func (rcv IntList) ConcatSlice(xs []int) IntList

alias for AppendSlice

func (IntList) Contains

func (rcv IntList) Contains(a int) bool

func (IntList) ContainsNot

func (rcv IntList) ContainsNot(a int) bool

func (IntList) Count

func (rcv IntList) Count() int

func (IntList) Distinct

func (rcv IntList) Distinct() IntList

func (IntList) DropWhile

func (rcv IntList) DropWhile(fn func(int) bool) IntList

alias for FilterNot

func (IntList) Fill

func (rcv IntList) Fill(num int, a int) IntList

create a new list prefilled

func (IntList) Filter

func (rcv IntList) Filter(fn func(int) bool) IntList

Selects all elements of this list which satisfy a predicate.

func (IntList) FilterNot

func (rcv IntList) FilterNot(fn func(int) bool) IntList

Selects all elements of this list which do not satisfy a predicate.

func (IntList) FlatMapToCatList

func (rcv IntList) FlatMapToCatList(fn func(int) CatList) CatList

func (IntList) FlatMapToIntList

func (rcv IntList) FlatMapToIntList(fn func(int) IntList) IntList

func (IntList) FlatMapToStringList

func (rcv IntList) FlatMapToStringList(fn func(int) StringList) StringList

func (IntList) FoldLeft

func (rcv IntList) FoldLeft(zero int, fn func(acc int, x int) int) int

func (IntList) FoldRight

func (rcv IntList) FoldRight(zero int, fn func(acc int, x int) int) int

func (IntList) ForEach

func (rcv IntList) ForEach(fn func(int))

func (IntList) ForEachP

func (rcv IntList) ForEachP(fn func(int))

func (IntList) ForEachPP

func (rcv IntList) ForEachPP(parallelism int, fn func(int))

func (IntList) ForEachPPP

func (rcv IntList) ForEachPPP(parallelism int, fn func(int), progressFn func())

func (IntList) ForEachWithIndex

func (rcv IntList) ForEachWithIndex(fn func(int, int))

func (IntList) ForEachWithLastFlag

func (rcv IntList) ForEachWithLastFlag(fn func(bool, int))

func (IntList) Head

func (rcv IntList) Head() int

panics when the list is empty

func (IntList) HeadOption

func (rcv IntList) HeadOption() IntOption

func (IntList) Init

func (rcv IntList) Init() IntList

returns the initial part of the collection, without the last element

func (IntList) Intersect

func (rcv IntList) Intersect(xs IntList) IntList

return the intersection of the list and another list

func (IntList) Intersperse

func (rcv IntList) Intersperse(a int) IntList

func (IntList) IsDefinedAt

func (rcv IntList) IsDefinedAt(x int) bool

tests whether this sequence contains the given index

func (IntList) IsEmpty

func (rcv IntList) IsEmpty() bool

func (IntList) IsNotEmpty

func (rcv IntList) IsNotEmpty() bool

func (IntList) Last

func (rcv IntList) Last() int

func (IntList) Len

func (rcv IntList) Len() int

implementation of 'sort.Interface'

func (IntList) Less

func (rcv IntList) Less(i, j int) bool

implementation of sort.Interface

func (IntList) MapToInt

func (rcv IntList) MapToInt(fn func(int) int) IntList

func (IntList) MapToIntP

func (rcv IntList) MapToIntP(mapFn func(int) int) IntList

func (IntList) MapToIntPP

func (rcv IntList) MapToIntPP(parallelism int, mapFn func(int) int) IntList

func (IntList) MapToIntPPP

func (rcv IntList) MapToIntPPP(parallelism int, mapFn func(int) int, progressFn func()) IntList

func (IntList) MapToIntWithIndex

func (rcv IntList) MapToIntWithIndex(fn func(int, int) int) IntList

func (IntList) MapToString

func (rcv IntList) MapToString(fn func(int) string) StringList

func (IntList) MapToStringP

func (rcv IntList) MapToStringP(mapFn func(int) string) StringList

func (IntList) MapToStringPP

func (rcv IntList) MapToStringPP(parallelism int, mapFn func(int) string) StringList

func (IntList) MapToStringPPP

func (rcv IntList) MapToStringPPP(parallelism int, mapFn func(int) string, progressFn func()) StringList

func (IntList) MapToStringWithIndex

func (rcv IntList) MapToStringWithIndex(fn func(int, int) string) StringList

func (IntList) MapToStringWithLastFlag

func (rcv IntList) MapToStringWithLastFlag(fn func(bool, int) string) StringList

func (IntList) MkString

func (rcv IntList) MkString(fn func(int) string) String

func (IntList) Partition

func (rcv IntList) Partition(fn func(int) bool) (IntList, IntList)

func (IntList) Range

func (rcv IntList) Range(from int, to int) IntList

func (IntList) RangeOf

func (rcv IntList) RangeOf(from int, to int, fn func(int) int) IntList

func (IntList) Reverse

func (rcv IntList) Reverse() IntList

func (IntList) Slice

func (rcv IntList) Slice(from int, to int) IntList

func (IntList) Sort

func (rcv IntList) Sort(fn func(i int, j int) bool) IntList

i and j are two objects that need to be compared, and based on that comparison the List will be sorted

func (IntList) Swap

func (rcv IntList) Swap(i, j int)

implementation of 'sort.Interface'

func (IntList) Tablulate

func (rcv IntList) Tablulate(num int, fn func(int) int) IntList

func (IntList) Tail

func (rcv IntList) Tail() IntList

The rest of the collection without its first element.

func (IntList) TakeWhile

func (rcv IntList) TakeWhile(fn func(int) bool) IntList

alias for Filter

func (IntList) ToSlice

func (rcv IntList) ToSlice() []int

returns a slice of int

type IntNone

type IntNone struct {
}

func (IntNone) Apply2

func (rcv IntNone) Apply2(a IntOption, fn func(int, int) int) IntOption

func (IntNone) Apply3

func (rcv IntNone) Apply3(a IntOption, b IntOption, fn func(int, int, int) int) IntOption

func (IntNone) Apply4

func (rcv IntNone) Apply4(a IntOption, b IntOption, c IntOption, fn func(int, int, int, int) int) IntOption

func (IntNone) Contains

func (rcv IntNone) Contains(a int) bool

func (IntNone) ContainsNot

func (rcv IntNone) ContainsNot(a int) bool

func (IntNone) Count

func (rcv IntNone) Count() int

func (IntNone) FoldToString

func (rcv IntNone) FoldToString(zero string, fn func(int) string) string

func (IntNone) ForEach

func (rcv IntNone) ForEach(fn func(int))

func (IntNone) Get

func (rcv IntNone) Get() int

panics when called

func (IntNone) GetOrElse

func (rcv IntNone) GetOrElse(fn func() int) int

func (IntNone) IsDefined

func (rcv IntNone) IsDefined() bool

func (IntNone) IsEmpty

func (rcv IntNone) IsEmpty() bool

func (IntNone) IsNotEmpty

func (rcv IntNone) IsNotEmpty() bool

type IntOption

type IntOption interface {
	Get() int
	GetOrElse(fn func() int) int
	ForEach(fn func(int))
	IsEmpty() bool
	IsNotEmpty() bool
	IsDefined() bool
	Count() int
	Contains(a int) bool
	ContainsNot(a int) bool
	FoldToString(zero string, fn func(int) string) string
	Apply2(a IntOption, fn func(int, int) int) IntOption
	Apply3(a IntOption, b IntOption, fn func(int, int, int) int) IntOption
	Apply4(a IntOption, b IntOption, c IntOption, fn func(int, int, int, int) int) IntOption
}

func OptionOfInt

func OptionOfInt(a *int) IntOption

type IntSome

type IntSome struct {
	// contains filtered or unexported fields
}

func (IntSome) Apply2

func (rcv IntSome) Apply2(a IntOption, fn func(int, int) int) IntOption

func (IntSome) Apply3

func (rcv IntSome) Apply3(a IntOption, b IntOption, fn func(int, int, int) int) IntOption

func (IntSome) Apply4

func (rcv IntSome) Apply4(a IntOption, b IntOption, c IntOption, fn func(int, int, int, int) int) IntOption

func (IntSome) Contains

func (rcv IntSome) Contains(a int) bool

func (IntSome) ContainsNot

func (rcv IntSome) ContainsNot(a int) bool

func (IntSome) Count

func (rcv IntSome) Count() int

func (IntSome) FoldToString

func (rcv IntSome) FoldToString(zero string, fn func(int) string) string

func (IntSome) ForEach

func (rcv IntSome) ForEach(fn func(int))

func (IntSome) Get

func (rcv IntSome) Get() int

some

func (IntSome) GetOrElse

func (rcv IntSome) GetOrElse(fn func() int) int

func (IntSome) IsDefined

func (rcv IntSome) IsDefined() bool

alias

func (IntSome) IsEmpty

func (rcv IntSome) IsEmpty() bool

func (IntSome) IsNotEmpty

func (rcv IntSome) IsNotEmpty() bool

type Person

type Person struct {
	Name      string
	Age       int
	Addresses AddressList
	Cats      CatList
}

type PersonList

type PersonList []Person

func EmptyPersonList

func EmptyPersonList() PersonList

func (PersonList) Append

func (rcv PersonList) Append(x Person) PersonList

append an element to the end of the list

func (PersonList) AppendAll

func (rcv PersonList) AppendAll(xs ...Person) PersonList

append elements to the end of the list

func (PersonList) AppendSlice

func (rcv PersonList) AppendSlice(xs []Person) PersonList

append a slice to the end of the list

func (PersonList) Apply

func (rcv PersonList) Apply(x int) Person

returns the element at the index

func (PersonList) ApplyOrElse

func (rcv PersonList) ApplyOrElse(x int, fn func() Person) Person

func (PersonList) Concat

func (rcv PersonList) Concat(xs ...Person) PersonList

alias for AppendAll

func (PersonList) ConcatSlice

func (rcv PersonList) ConcatSlice(xs []Person) PersonList

alias for AppendSlice

func (PersonList) Contains

func (rcv PersonList) Contains(a Person) bool

func (PersonList) ContainsNot

func (rcv PersonList) ContainsNot(a Person) bool

func (PersonList) Count

func (rcv PersonList) Count() int

func (PersonList) Distinct

func (rcv PersonList) Distinct() PersonList

func (PersonList) DropWhile

func (rcv PersonList) DropWhile(fn func(Person) bool) PersonList

alias for FilterNot

func (PersonList) Fill

func (rcv PersonList) Fill(num int, a Person) PersonList

create a new list prefilled

func (PersonList) Filter

func (rcv PersonList) Filter(fn func(Person) bool) PersonList

Selects all elements of this list which satisfy a predicate.

func (PersonList) FilterNot

func (rcv PersonList) FilterNot(fn func(Person) bool) PersonList

Selects all elements of this list which do not satisfy a predicate.

func (PersonList) FlatMapToPersonList

func (rcv PersonList) FlatMapToPersonList(fn func(Person) PersonList) PersonList

func (PersonList) FoldLeft

func (rcv PersonList) FoldLeft(zero Person, fn func(acc Person, x Person) Person) Person

func (PersonList) FoldRight

func (rcv PersonList) FoldRight(zero Person, fn func(acc Person, x Person) Person) Person

func (PersonList) ForEach

func (rcv PersonList) ForEach(fn func(Person))

func (PersonList) ForEachP

func (rcv PersonList) ForEachP(fn func(Person))

func (PersonList) ForEachPP

func (rcv PersonList) ForEachPP(parallelism int, fn func(Person))

func (PersonList) ForEachPPP

func (rcv PersonList) ForEachPPP(parallelism int, fn func(Person), progressFn func())

func (PersonList) ForEachWithIndex

func (rcv PersonList) ForEachWithIndex(fn func(int, Person))

func (PersonList) ForEachWithLastFlag

func (rcv PersonList) ForEachWithLastFlag(fn func(bool, Person))

func (PersonList) Head

func (rcv PersonList) Head() Person

panics when the list is empty

func (PersonList) HeadOption

func (rcv PersonList) HeadOption() PersonOption

func (PersonList) Init

func (rcv PersonList) Init() PersonList

returns the initial part of the collection, without the last element

func (PersonList) Intersect

func (rcv PersonList) Intersect(xs PersonList) PersonList

return the intersection of the list and another list

func (PersonList) Intersperse

func (rcv PersonList) Intersperse(a Person) PersonList

func (PersonList) IsDefinedAt

func (rcv PersonList) IsDefinedAt(x int) bool

tests whether this sequence contains the given index

func (PersonList) IsEmpty

func (rcv PersonList) IsEmpty() bool

func (PersonList) IsNotEmpty

func (rcv PersonList) IsNotEmpty() bool

func (PersonList) Last

func (rcv PersonList) Last() Person

func (PersonList) Len

func (rcv PersonList) Len() int

implementation of 'sort.Interface'

func (PersonList) Less

func (rcv PersonList) Less(i, j int) bool

implementation of sort.Interface

func (PersonList) MapToCat

func (rcv PersonList) MapToCat(fn func(Person) Cat) CatList

func (PersonList) MapToCatP

func (rcv PersonList) MapToCatP(mapFn func(Person) Cat) CatList

func (PersonList) MapToCatPP

func (rcv PersonList) MapToCatPP(parallelism int, mapFn func(Person) Cat) CatList

func (PersonList) MapToCatPPP

func (rcv PersonList) MapToCatPPP(parallelism int, mapFn func(Person) Cat, progressFn func()) CatList

func (PersonList) MapToCatWithIndex

func (rcv PersonList) MapToCatWithIndex(fn func(int, Person) Cat) CatList

func (PersonList) MapToCatWithLastFlag

func (rcv PersonList) MapToCatWithLastFlag(fn func(bool, Person) Cat) CatList

func (PersonList) MapToPerson

func (rcv PersonList) MapToPerson(fn func(Person) Person) PersonList

func (PersonList) MapToPersonP

func (rcv PersonList) MapToPersonP(mapFn func(Person) Person) PersonList

func (PersonList) MapToPersonPP

func (rcv PersonList) MapToPersonPP(parallelism int, mapFn func(Person) Person) PersonList

func (PersonList) MapToPersonPPP

func (rcv PersonList) MapToPersonPPP(parallelism int, mapFn func(Person) Person, progressFn func()) PersonList

func (PersonList) MapToPersonWithIndex

func (rcv PersonList) MapToPersonWithIndex(fn func(int, Person) Person) PersonList

func (PersonList) MkString

func (rcv PersonList) MkString(fn func(Person) string) String

func (PersonList) Partition

func (rcv PersonList) Partition(fn func(Person) bool) (PersonList, PersonList)

func (PersonList) RangeOf

func (rcv PersonList) RangeOf(from int, to int, fn func(int) Person) PersonList

func (PersonList) Reverse

func (rcv PersonList) Reverse() PersonList

func (PersonList) Slice

func (rcv PersonList) Slice(from int, to int) PersonList

func (PersonList) Sort

func (rcv PersonList) Sort(fn func(i Person, j Person) bool) PersonList

i and j are two objects that need to be compared, and based on that comparison the List will be sorted

func (PersonList) Swap

func (rcv PersonList) Swap(i, j int)

implementation of 'sort.Interface'

func (PersonList) Tablulate

func (rcv PersonList) Tablulate(num int, fn func(int) Person) PersonList

func (PersonList) Tail

func (rcv PersonList) Tail() PersonList

The rest of the collection without its first element.

func (PersonList) TakeWhile

func (rcv PersonList) TakeWhile(fn func(Person) bool) PersonList

alias for Filter

func (PersonList) ToSlice

func (rcv PersonList) ToSlice() []Person

returns a slice of Person

type PersonNone

type PersonNone struct {
}

func (PersonNone) Apply2

func (rcv PersonNone) Apply2(a PersonOption, fn func(Person, Person) Person) PersonOption

func (PersonNone) Apply3

func (PersonNone) Apply4

func (PersonNone) Contains

func (rcv PersonNone) Contains(a Person) bool

func (PersonNone) ContainsNot

func (rcv PersonNone) ContainsNot(a Person) bool

func (PersonNone) Count

func (rcv PersonNone) Count() int

func (PersonNone) FoldToString

func (rcv PersonNone) FoldToString(zero string, fn func(Person) string) string

func (PersonNone) ForEach

func (rcv PersonNone) ForEach(fn func(Person))

func (PersonNone) Get

func (rcv PersonNone) Get() Person

panics when called

func (PersonNone) GetOrElse

func (rcv PersonNone) GetOrElse(fn func() Person) Person

func (PersonNone) IsDefined

func (rcv PersonNone) IsDefined() bool

func (PersonNone) IsEmpty

func (rcv PersonNone) IsEmpty() bool

func (PersonNone) IsNotEmpty

func (rcv PersonNone) IsNotEmpty() bool

type PersonOption

type PersonOption interface {
	Get() Person
	GetOrElse(fn func() Person) Person
	ForEach(fn func(Person))
	IsEmpty() bool
	IsNotEmpty() bool
	IsDefined() bool
	Count() int
	Contains(a Person) bool
	ContainsNot(a Person) bool
	FoldToString(zero string, fn func(Person) string) string
	Apply2(a PersonOption, fn func(Person, Person) Person) PersonOption
	Apply3(a PersonOption, b PersonOption, fn func(Person, Person, Person) Person) PersonOption
	Apply4(a PersonOption, b PersonOption, c PersonOption, fn func(Person, Person, Person, Person) Person) PersonOption
}

func OptionOfPerson

func OptionOfPerson(a *Person) PersonOption

type PersonSome

type PersonSome struct {
	// contains filtered or unexported fields
}

func (PersonSome) Apply2

func (rcv PersonSome) Apply2(a PersonOption, fn func(Person, Person) Person) PersonOption

func (PersonSome) Apply3

func (PersonSome) Apply4

func (PersonSome) Contains

func (rcv PersonSome) Contains(a Person) bool

func (PersonSome) ContainsNot

func (rcv PersonSome) ContainsNot(a Person) bool

func (PersonSome) Count

func (rcv PersonSome) Count() int

func (PersonSome) FoldToString

func (rcv PersonSome) FoldToString(zero string, fn func(Person) string) string

func (PersonSome) ForEach

func (rcv PersonSome) ForEach(fn func(Person))

func (PersonSome) Get

func (rcv PersonSome) Get() Person

some

func (PersonSome) GetOrElse

func (rcv PersonSome) GetOrElse(fn func() Person) Person

func (PersonSome) IsDefined

func (rcv PersonSome) IsDefined() bool

alias

func (PersonSome) IsEmpty

func (rcv PersonSome) IsEmpty() bool

func (PersonSome) IsNotEmpty

func (rcv PersonSome) IsNotEmpty() bool

type RangeIterator

type RangeIterator struct {
	// contains filtered or unexported fields
}

func Range

func Range(from, to int) RangeIterator

to is exclusive

func (RangeIterator) ForEach

func (rcv RangeIterator) ForEach(fn func())

func (RangeIterator) ForEachWithIndex

func (rcv RangeIterator) ForEachWithIndex(fn func(int))

func (RangeIterator) ForEachWithIndexWithReturnFunc

func (rcv RangeIterator) ForEachWithIndexWithReturnFunc(fn func(int), ret func(int) bool)

func (RangeIterator) ForEachWithLastFlag

func (rcv RangeIterator) ForEachWithLastFlag(fn func(bool))

func (RangeIterator) ForEachWithReturnFunc

func (rcv RangeIterator) ForEachWithReturnFunc(fn func(), ret func(int) bool)

func (RangeIterator) ToIntList

func (rcv RangeIterator) ToIntList() IntList

func (RangeIterator) WithStep

func (rcv RangeIterator) WithStep(step int) RangeIterator

type String

type String string

func (String) Append

func (s String) Append(str string) String

func (String) Contains

func (s String) Contains(that string) bool

func (String) Count

func (s String) Count() int

func (String) HasPrefix

func (s String) HasPrefix(prefix string) bool

func (String) HasSuffix

func (s String) HasSuffix(suffix string) bool

func (String) IsEmpty

func (s String) IsEmpty() bool

func (String) IsNotEmpty

func (s String) IsNotEmpty() bool

func (String) Map

func (s String) Map(f func(string) string) String

func (String) NotContains

func (s String) NotContains(that string) bool

func (String) QueryEscape

func (s String) QueryEscape() String

func (String) QueryUnEscape

func (s String) QueryUnEscape() (String, error)

func (String) ReplaceAll

func (s String) ReplaceAll(oldString, newString string) String

ReplaceAll returns a copy of the string s with all non-overlapping instances of old replaced by new.

func (String) Split

func (s String) Split(sep string) StringList

func (String) Str

func (s String) Str() string

func (String) ToBytes

func (s String) ToBytes() []byte

func (String) ToLower

func (s String) ToLower() String

func (String) ToString

func (s String) ToString() string

func (String) ToTitle

func (s String) ToTitle() String

func (String) ToUpper

func (s String) ToUpper() String

func (String) TrimLeft

func (s String) TrimLeft(cutset string) String

TrimLeft returns a slice of the string s with all leading Unicode code points contained in cutset removed.

func (String) TrimPrefix

func (s String) TrimPrefix(prefix string) String

TrimPrefix returns s without the provided leading prefix string. If s doesn't start with prefix, s is returned unchanged.

func (String) TrimSpace

func (s String) TrimSpace() String

func (String) TrimSuffix

func (s String) TrimSuffix(suffix string) String

TrimSuffix returns s without the provided trailing suffix string. If s doesn't end with suffix, s is returned unchanged.

type StringList

type StringList []string

func EmptyStringList

func EmptyStringList() StringList

func (StringList) Append

func (rcv StringList) Append(x string) StringList

append an element to the end of the list

func (StringList) AppendAll

func (rcv StringList) AppendAll(xs ...string) StringList

append elements to the end of the list

func (StringList) AppendSlice

func (rcv StringList) AppendSlice(xs []string) StringList

append a slice to the end of the list

func (StringList) Apply

func (rcv StringList) Apply(x int) string

returns the element at the index

func (StringList) ApplyOrElse

func (rcv StringList) ApplyOrElse(x int, fn func() string) string

func (StringList) Concat

func (rcv StringList) Concat(xs ...string) StringList

alias for AppendAll

func (StringList) ConcatSlice

func (rcv StringList) ConcatSlice(xs []string) StringList

alias for AppendSlice

func (StringList) Contains

func (rcv StringList) Contains(a string) bool

func (StringList) ContainsNot

func (rcv StringList) ContainsNot(a string) bool

func (StringList) Count

func (rcv StringList) Count() int

func (StringList) Distinct

func (rcv StringList) Distinct() StringList

func (StringList) DropWhile

func (rcv StringList) DropWhile(fn func(string) bool) StringList

alias for FilterNot

func (StringList) Fill

func (rcv StringList) Fill(num int, a string) StringList

create a new list prefilled

func (StringList) Filter

func (rcv StringList) Filter(fn func(string) bool) StringList

Selects all elements of this list which satisfy a predicate.

func (StringList) FilterNot

func (rcv StringList) FilterNot(fn func(string) bool) StringList

Selects all elements of this list which do not satisfy a predicate.

func (StringList) FlatMapToCatList

func (rcv StringList) FlatMapToCatList(fn func(string) CatList) CatList

func (StringList) FlatMapToStringList

func (rcv StringList) FlatMapToStringList(fn func(string) StringList) StringList

func (StringList) FoldLeft

func (rcv StringList) FoldLeft(zero string, fn func(acc string, x string) string) string

func (StringList) FoldRight

func (rcv StringList) FoldRight(zero string, fn func(acc string, x string) string) string

func (StringList) ForEach

func (rcv StringList) ForEach(fn func(string))

func (StringList) ForEachP

func (rcv StringList) ForEachP(fn func(string))

func (StringList) ForEachPP

func (rcv StringList) ForEachPP(parallelism int, fn func(string))

func (StringList) ForEachPPP

func (rcv StringList) ForEachPPP(parallelism int, fn func(string), progressFn func())

func (StringList) ForEachWithIndex

func (rcv StringList) ForEachWithIndex(fn func(int, string))

func (StringList) ForEachWithLastFlag

func (rcv StringList) ForEachWithLastFlag(fn func(bool, string))

func (StringList) Head

func (rcv StringList) Head() string

panics when the list is empty

func (StringList) HeadOption

func (rcv StringList) HeadOption() StringOption

func (StringList) Init

func (rcv StringList) Init() StringList

returns the initial part of the collection, without the last element

func (StringList) Intersect

func (rcv StringList) Intersect(xs StringList) StringList

return the intersection of the list and another list

func (StringList) Intersperse

func (rcv StringList) Intersperse(a string) StringList

func (StringList) IsDefinedAt

func (rcv StringList) IsDefinedAt(x int) bool

tests whether this sequence contains the given index

func (StringList) IsEmpty

func (rcv StringList) IsEmpty() bool

func (StringList) IsNotEmpty

func (rcv StringList) IsNotEmpty() bool

func (StringList) Join

func (rcv StringList) Join(sep string) String

joins using the character and returns the string

func (StringList) Last

func (rcv StringList) Last() string

func (StringList) Len

func (rcv StringList) Len() int

implementation of 'sort.Interface'

func (StringList) Less

func (rcv StringList) Less(i, j int) bool

implementation of sort.Interface

func (StringList) MapToInt

func (rcv StringList) MapToInt(fn func(string) int) IntList

func (StringList) MapToIntP

func (rcv StringList) MapToIntP(mapFn func(string) int) IntList

func (StringList) MapToIntPP

func (rcv StringList) MapToIntPP(parallelism int, mapFn func(string) int) IntList

func (StringList) MapToIntPPP

func (rcv StringList) MapToIntPPP(parallelism int, mapFn func(string) int, progressFn func()) IntList

func (StringList) MapToIntWithIndex

func (rcv StringList) MapToIntWithIndex(fn func(int, string) int) IntList

func (StringList) MapToIntWithLastFlag

func (rcv StringList) MapToIntWithLastFlag(fn func(bool, string) int) IntList

func (StringList) MapToString

func (rcv StringList) MapToString(fn func(string) string) StringList

func (StringList) MapToStringP

func (rcv StringList) MapToStringP(mapFn func(string) string) StringList

func (StringList) MapToStringPP

func (rcv StringList) MapToStringPP(parallelism int, mapFn func(string) string) StringList

func (StringList) MapToStringPPP

func (rcv StringList) MapToStringPPP(parallelism int, mapFn func(string) string, progressFn func()) StringList

func (StringList) MapToStringWithIndex

func (rcv StringList) MapToStringWithIndex(fn func(int, string) string) StringList

func (StringList) MkString

func (rcv StringList) MkString(fn func(string) string) String

func (StringList) Partition

func (rcv StringList) Partition(fn func(string) bool) (StringList, StringList)

func (StringList) RangeOf

func (rcv StringList) RangeOf(from int, to int, fn func(int) string) StringList

func (StringList) Reverse

func (rcv StringList) Reverse() StringList

func (StringList) Slice

func (rcv StringList) Slice(from int, to int) StringList

func (StringList) Sort

func (rcv StringList) Sort(fn func(i string, j string) bool) StringList

i and j are two objects that need to be compared, and based on that comparison the List will be sorted

func (StringList) Swap

func (rcv StringList) Swap(i, j int)

implementation of 'sort.Interface'

func (StringList) Tablulate

func (rcv StringList) Tablulate(num int, fn func(int) string) StringList

func (StringList) Tail

func (rcv StringList) Tail() StringList

The rest of the collection without its first element.

func (StringList) TakeWhile

func (rcv StringList) TakeWhile(fn func(string) bool) StringList

alias for Filter

func (StringList) ToSlice

func (rcv StringList) ToSlice() []string

returns a slice of string

type StringNone

type StringNone struct {
}

func (StringNone) Apply2

func (rcv StringNone) Apply2(a StringOption, fn func(string, string) string) StringOption

func (StringNone) Apply3

func (StringNone) Apply4

func (StringNone) Contains

func (rcv StringNone) Contains(a string) bool

func (StringNone) ContainsNot

func (rcv StringNone) ContainsNot(a string) bool

func (StringNone) Count

func (rcv StringNone) Count() int

func (StringNone) FoldToString

func (rcv StringNone) FoldToString(zero string, fn func(string) string) string

func (StringNone) ForEach

func (rcv StringNone) ForEach(fn func(string))

func (StringNone) Get

func (rcv StringNone) Get() string

panics when called

func (StringNone) GetOrElse

func (rcv StringNone) GetOrElse(fn func() string) string

func (StringNone) IsDefined

func (rcv StringNone) IsDefined() bool

func (StringNone) IsEmpty

func (rcv StringNone) IsEmpty() bool

func (StringNone) IsNotEmpty

func (rcv StringNone) IsNotEmpty() bool

type StringOption

type StringOption interface {
	Get() string
	GetOrElse(fn func() string) string
	ForEach(fn func(string))
	IsEmpty() bool
	IsNotEmpty() bool
	IsDefined() bool
	Count() int
	Contains(a string) bool
	ContainsNot(a string) bool
	FoldToString(zero string, fn func(string) string) string
	Apply2(a StringOption, fn func(string, string) string) StringOption
	Apply3(a StringOption, b StringOption, fn func(string, string, string) string) StringOption
	Apply4(a StringOption, b StringOption, c StringOption, fn func(string, string, string, string) string) StringOption
}

func OptionOfString

func OptionOfString(a *string) StringOption

type StringSome

type StringSome struct {
	// contains filtered or unexported fields
}

func (StringSome) Apply2

func (rcv StringSome) Apply2(a StringOption, fn func(string, string) string) StringOption

func (StringSome) Apply3

func (StringSome) Apply4

func (StringSome) Contains

func (rcv StringSome) Contains(a string) bool

func (StringSome) ContainsNot

func (rcv StringSome) ContainsNot(a string) bool

func (StringSome) Count

func (rcv StringSome) Count() int

func (StringSome) FoldToString

func (rcv StringSome) FoldToString(zero string, fn func(string) string) string

func (StringSome) ForEach

func (rcv StringSome) ForEach(fn func(string))

func (StringSome) Get

func (rcv StringSome) Get() string

some

func (StringSome) GetOrElse

func (rcv StringSome) GetOrElse(fn func() string) string

func (StringSome) IsDefined

func (rcv StringSome) IsDefined() bool

alias

func (StringSome) IsEmpty

func (rcv StringSome) IsEmpty() bool

func (StringSome) IsNotEmpty

func (rcv StringSome) IsNotEmpty() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL