r/java • • Sep 25 '19

I made an expansion of the java.util.function package to support more functional programming concepts

13 Upvotes

Hi everyone. I made this because I've always had an interest in functional programming and always wished this package could do just a little bit more (without necessarily becoming some giant fully-featured functional-programming library). Here's the repo: https://gitlab.com/Eolu/funcyjava

This really started because I wanted to do functional partial applications, and occasionally wanted to call `map` on a bare Function object that wasn't necessarily part of a stream. I basically did a rewrite of java.util.function (while extending the classes there while possible to preserve compatibility). There's a nice little readme explaining just what's in here.

Basically I've been wanting to share this with people to see if anyone finds it useful/interesting, and this seemed like a good subreddit. Any comments/questions/criticism/ideas/etc will be appreciated!