module RubyMarkovify

Constants

VERSION

Public Class Methods

cumulative_sum(array) click to toggle source
# File lib/ruby_markovify/chain.rb, line 2
def self.cumulative_sum(array)
  sum = 0
  array.map { |x| sum += x }
end