slice

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Seq

type Seq[A any] []A

Seq a type represents a finite sequence of values of type a, which is built using Golang slice.

func (Seq[A]) HKT1

func (Seq[A]) HKT1(seq.Type)

func (Seq[A]) HKT2

func (Seq[A]) HKT2(A)

type Trait

type Trait[A any] string

Trait implements seq.Seq type law for Seq type

func (Trait[A]) Cons

func (Trait[A]) Cons(x A, seq Seq[A]) Seq[A]

func (Trait[A]) Head

func (Trait[A]) Head(seq Seq[A]) A

func (Trait[A]) IsEmpty

func (Trait[A]) IsEmpty(seq Seq[A]) bool

func (Trait[A]) Length

func (Trait[A]) Length(seq Seq[A]) int

func (Trait[A]) New

func (Trait[A]) New(seq ...A) Seq[A]

func (Trait[A]) Tail

func (Trait[A]) Tail(seq Seq[A]) Seq[A]

Jump to

Keyboard shortcuts

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