Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 845 Bytes

README.md

File metadata and controls

21 lines (12 loc) · 845 Bytes

funcy

GoDoc

What is this?

A library providing functional-style operations like Map/Reduce/Filter (to name a few) implemented in Go w/ generics.

But Rob Pike says we should just write for loops instead...

Sorry, I guess I just couldn't resist. I extend apologies to all the Go purists who are annoyed by this.

Are you aware that this approach lacks lazy evaluation, generates a ton of garbage, and won't scale for increasingly large inputs?

Yup. I extend apologies to all the functional purists who are annoyed by this.

How would one install it? (Asking for a friend...)

go get github.com/mdwhatcott/funcy

Enjoy!