Scala – Reduce, fold or scan (Left/Right)