No description
Find a file
2021-12-29 22:30:57 -04:00
.gitignore feat: map 2021-12-28 19:26:42 -04:00
.golangci.yml feat: map 2021-12-28 19:26:42 -04:00
contains.go feat: max 2021-12-29 22:30:57 -04:00
contains_test.go feat: contains 2021-12-29 13:46:29 -04:00
Dockerfile doc: add documentation 2021-12-29 10:33:00 -04:00
each.go doc: add documentation 2021-12-29 10:33:00 -04:00
each_test.go feat: each 2021-12-29 10:09:51 -04:00
every.go feat: every 2021-12-29 13:16:26 -04:00
every_test.go feat: every 2021-12-29 13:16:26 -04:00
filter.go doc: add documentation 2021-12-29 10:33:00 -04:00
filter_test.go feat: filter 2021-12-28 19:36:36 -04:00
find.go doc: find 2021-12-29 13:07:40 -04:00
find_test.go feat: find 2021-12-29 13:03:13 -04:00
go.mod feat: filter 2021-12-28 19:36:36 -04:00
go.sum feat: filter 2021-12-28 19:36:36 -04:00
LICENSE Initial commit 2021-12-28 19:23:17 -04:00
Makefile doc: add documentation 2021-12-29 10:33:00 -04:00
map.go doc: add documentation 2021-12-29 10:33:00 -04:00
map_test.go feat: map 2021-12-28 19:26:42 -04:00
max.go feat: max 2021-12-29 22:30:57 -04:00
max_test.go feat: max 2021-12-29 22:30:57 -04:00
README.md feat: max 2021-12-29 22:30:57 -04:00
reduce.go doc: add documentation 2021-12-29 10:33:00 -04:00
reduce_test.go feat: reduce 2021-12-28 19:47:05 -04:00
some.go feat: some 2021-12-29 10:48:41 -04:00
some_test.go feat: find 2021-12-29 13:03:13 -04:00
types.go feat: max 2021-12-29 22:30:57 -04:00

Underscore

underscore is a Go library that provides useful functional programming helpers without extending any built-in objects.

It is mostly a port from the underscore.js library based on generics brought by go1.18.

Functions

underscore provides 100s of functions that support your favorite functional helpers

Collections

  • map
  • filter
  • reduce
  • each
  • some
  • every
  • find
  • contains (only numerics values at the moment)
  • max