Flattening of nested arrays, array repetition operator etc

Plus, a bunch of example solutions for a few of the 99 Problems list. Please feel free to improve or suggest alternate solutions.