slice

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bsearch

func Bsearch(x typeclass.Ord, xs []typeclass.Ord) int

func Delete

func Delete(x typeclass.Ord, xs []typeclass.Ord) []typeclass.Ord

func DeleteBy

func DeleteBy(f func(typeclass.Ord) bool, xs []typeclass.Ord) []typeclass.Ord

func Elem

func Elem(x typeclass.Ord, xs []typeclass.Ord) typeclass.Ord

func ElemIndex

func ElemIndex(x typeclass.Ord, xs []typeclass.Ord) int

func Filter

func Filter(f func(typeclass.Ord) bool, xs []typeclass.Ord) []typeclass.Ord

func FoldWhile

func FoldWhile(f func(typeclass.Ord, interface{}) bool, x interface{}, xs []typeclass.Ord) interface{}

func Foldl

func Foldl(f functor.FoldFunc, x interface{}, xs []typeclass.Ord) interface{}

将一个列表根据x和f从左到右折叠成一个新的元素

func Foldr

func Foldr(f functor.FoldFunc, x interface{}, xs []typeclass.Ord) interface{}

将一个列表根据x和f从右到左折叠成一个新的元素

func Map

func Map(f functor.MapFunc, xs []typeclass.Ord) []typeclass.Ord

将一个列表根据f映射成另一个元素

func Nub

func Nub(xs []typeclass.Ord) []typeclass.Ord

func Push

func Push(x typeclass.Ord, xs []typeclass.Ord) []typeclass.Ord

func Qsort

func Qsort(xs []typeclass.Ord) []typeclass.Ord

Types

This section is empty.

Jump to

Keyboard shortcuts

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