Hacker News new | past | comments | ask | show | jobs | submit login

In bolts, it's

  Map<String, Map<String, Integer>> lookup = Cf.hashMap();
Which is as short and also doesn't require static imports.

Bolts are the state of art FP library for java.

https://bitbucket.org/stepancheg/bolts/src/tip/src/main/java... some examples in tests




Sadly not in maven repo yet so my company can't use it. I have played around some with functional java (functionaljava.org) and Op4j. Have you compared bolts to either of those?


As far as I know, functional java was used as inspiration, but bolts were much more suitable for day to day tasks (a lot of pragmatic code already there).

No idea about the recent development in fj, they probably made some improvements in the meantime, too.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: