Skip to content

dangerous1990/functional-go

Repository files navigation

Functional go

not support high-order functional

how to install

go get -u github.com/dangerous1990/functional-go

go 1.11.1+ add in your go.mod file

go mod edit --require github.com/dangerous1990/functional-go@v0.0.0

how to use please see unit test

basic

  • Get
  • Index

builder opreation

  • Of
  • RangeInt
  • Repeat

transform operation

  • Map
  • Reverse

filter operation

  • Filter
  • First
  • Last
  • Skip
  • SkipLast
  • SkipUntil
  • SkipWhile

condition and bool operation

  • Find
  • FindIndex
  • IsEmpty

math and agg operation

  • Count
  • Reduce

optional

  • Get
  • OrElse
  • OrElseGet
  • IfPresent
  • IsPresent

Releases

No releases published

Packages

No packages published