Categorygithub.com/wipdev-tech/funutils
repositorypackage
0.0.0-20240120210758-77f5a60dde9e
Repository: https://github.com/wipdev-tech/funutils.git
Documentation: pkg.go.dev

# README

funutils

Add functional programming to your Go code

Package funutils includes functions implementing common functional programming concepts and patterns. The name was inspired from an R documentation page named funprog. (I am not the only one who sees the "fun" in the "functional")

The package includes functions like:

  • map
  • filter
  • reduce
  • composition
  • ... and many more

NOTE: This package is a simple collection of utility functions. For a more fleshed out FP implementation, check out fp-go.

Installation

Following the Go proverb "a little copying is better than a little dependency," I encourage you to browse code and if you only need a function or two from here, just copy them into your project.

If you decide you want the whole package, simply use go get in your project directory:

go get github.com/wipdev-tech/funprog