From Learn F#
Learn-F-accumulate
By Isaac Abraham