Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
fix reduce example
Browse files Browse the repository at this point in the history
  • Loading branch information
kode4food committed Feb 7, 2016
1 parent 46f922f commit b735501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -95,13 +95,13 @@ else
end

# Reduce Statement (Multiple Components)
reduce sum = 0, count = 0, average = 0
reduce sum = 0, count = 0
for value in [1, 2, 3, 4, 5, 6, 7]
where value < 4
let count = count + 1
let sum = sum + value
let average = sum / count
end
let average = sum / count

# Reduce Expression (in Lambda)
let sum = (values ->
Expand Down

0 comments on commit b735501

Please sign in to comment.