reverse method

IList<A> reverse()

Implementation

IList<A> reverse() => foldLeft(nil(), (a, h) => new Cons(h, a));