FP - Relationship between Applicative Functor and Monad
Applicative Functor has the following two properties. Pure: create a functor from value. Apply: a function taking arguments which are a Functor having a func...
Applicative Functor has the following two properties. Pure: create a functor from value. Apply: a function taking arguments which are a Functor having a func...
IdentityHashMap class 1 Map<String,String> iMap = new IdentityHashMap<String,String>();
NavigableMap collection on Java provide methods to return the view of Map on sorted order of key. The most common methods are headMap, tailMap and subMap. he...
Guava example 1 2 3 Collection.sort(list, Ordering.from((Comparator<Item>) Comparator.comparingInt(item -> item.getId())) .compound(Comparat...
Example of a chained comparison statement. 1 2 3 4 5 6 7 public int compareTo(Foo that) { return ComparisonChain.start() .compare(this.aStri...