Permalink
Browse files

CHANGELOG

TESTS ADDED, all passing
  • Loading branch information...
shanebdavis committed Sep 20, 2018
1 parent 560f5e6 commit f0f0b4afa252085fb3976bcecad89f146ea3cfb3
Showing with 6 additions and 3 deletions.
  1. +3 −3 CHANGE_LOG.md
  2. +3 −0 test/tests/CaffeineScript/Semantics/Comprehensions.coffee
View
@@ -21,9 +21,9 @@ array from-object myObject
Previously, only `array` was supported.
```coffeescript
object til 4 # returns 1:1 2:2 3:3 4:4
find til 4 # returns 1
each til 4 # returns 4
object til 4 # returns 0:0 1:1 2:2 3:3
find til 4 # returns 1, the first trueish value
each til 4 # returns 4, the value pass into to/til
```
##### NEW: `by` clause for array-iteration - including reverse iteration:
@@ -34,6 +34,9 @@ module.exports = suite: semanticTestSuite
"array a to 4 with Math.sqrt(a) * 100 | 0": [0, 100, 141, 173, 200]
"(f = -> -3); array til f()": [0, -1, -2]
"object til 4": value: 0: 0, 1: 1, 2: 2, 3: 3
"find til 4": 1
"each til 4": 4
reduce:
"reduce 1 2 3": 1

0 comments on commit f0f0b4a

Please sign in to comment.