Sha256: a444362cd978ab3b6a9bd1d9e3a09e983feec4b5ffc8a7ea440f7d318a114774
Contents?: true
Size: 262 Bytes
Versions: 134
Compression:
Stored size: 262 Bytes
Contents
module DifferenceOfSquares let square x = x * x let squareOfSum (number: int) = [1..number] |> List.sum |> square let sumOfSquares (number: int) = List.sumBy square [1..number] let differenceOfSquares (number: int) = squareOfSum number - sumOfSquares number
Version data entries
134 entries across 134 versions & 1 rubygems