3 ms·
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 a
by guard-of-terra 15y ago
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/ru/yandex/bolts/collection/example/ListFExample.java#cl-22 https://bitbucket.org/stepancheg/bolts/src/tip/src/main/java... some examples in tests
- michaelcampbell 15y agoSadly 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?
- guard-of-terra 15y agoAs 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.