Sha256: c61d2730a7570e38fd727b53e706442fb0b8912eb5e82286fdde9d0de3618da5

Contents?: true

Size: 170 Bytes

Versions: 1

Compression:

Stored size: 170 Bytes

Contents

class Array
  include Straightedge::Aspects::Positional
  include Straightedge::Aspects::Figural

  def sum
    inject(&:+)
  end

  def mean 
    sum / size
  end  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
straightedge-0.1.1 lib/straightedge/extend/array.rb