functionalscript 0.0.368 → 0.0.369

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functionalscript",
3
- "version": "0.0.368",
3
+ "version": "0.0.369",
4
4
  "description": "FunctionalScript is a functional subset of JavaScript",
5
5
  "main": "main.f.cjs",
6
6
  "scripts": {
@@ -159,33 +159,35 @@ const stringify = sequence => json.stringify(sort)(_.toArray(sequence))
159
159
  if (result !== '[[0,"a"],[1,"b"]]') { throw result }
160
160
  }
161
161
 
162
+ const map5 = _.map(x => x > 5)
163
+
162
164
  {
163
- const result = _.some(_.map(x => x > 5)([0, 1, 7]))
165
+ const result = _.some(map5([0, 1, 7]))
164
166
  if (!result) { throw result }
165
167
  }
166
168
 
167
169
  {
168
- const result = _.some(_.map(x => x > 5)([0, 1, 4]))
170
+ const result = _.some(map5([0, 1, 4]))
169
171
  if (result) { throw result }
170
172
  }
171
173
 
172
174
  {
173
- const result = _.some(_.map(x => x > 5)([]))
175
+ const result = _.some(map5([]))
174
176
  if (result) { throw result }
175
177
  }
176
178
 
177
179
  {
178
- const result = _.every(_.map(x => x > 5)([0, 1, 7]))
180
+ const result = _.every(map5([0, 1, 7]))
179
181
  if (result) { throw result }
180
182
  }
181
183
 
182
184
  {
183
- const result = _.every(_.map(x => x > 5)([6, 11, 7]))
185
+ const result = _.every(map5([6, 11, 7]))
184
186
  if (!result) { throw result }
185
187
  }
186
188
 
187
189
  {
188
- const result = _.every(_.map(x => x > 5)([]))
190
+ const result = _.every(map5([]))
189
191
  if (!result) { throw result }
190
192
  }
191
193