Skip to content

Functional Go inspired by Java's Stream & Optional API

Notifications You must be signed in to change notification settings

mqrc81/go-functional

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-functional

Functional Go library similar to Java's Stream & Optional API

All methods seem to work but I don't have the dedication to properly polish this project for actual use since it was just for fun.

For implemented methods see:

TODO (but probably won't ever pick it up again)

  • Make Stream's fully concurrent whilst still supporting short-circuit operations
  • Unit-test

Limitations

  • Go's Generics don't allow for generic input- and output- types on methods (not functions!)
    • Methods such as Stream.map() in Java can't be smoothly chained or must have a predefined output type
  • Go's primitive types don't have null values and there is no equivalent "Object"
    • Optionals for types like boolean or int don't really make sense

About

Functional Go inspired by Java's Stream & Optional API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages