Skip to content

Commit

Permalink
also accept a scalar (single number) in the variadic SUM reporter (re…
Browse files Browse the repository at this point in the history
…turns its identity)
  • Loading branch information
jmoenig committed Jan 18, 2024
1 parent 181a101 commit 0f03487
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
## in development:
* **New Features:**
* new "dot" symbol (for "dot-product" block labels on machines where the unicode char is not available)
* **Notable Changes:**
* the variadic SUM reporter now also accepts a scalar (single number) as input (and returns it as identity)

2024-01-18
* new dev version for v9.2.2
* symbols: added "dot" symbol
* threads: also accept a scalar (single number) in the variadic SUM reporter (returns its identity)

## 9.2.1:
* **New Features:**
Expand Down
3 changes: 2 additions & 1 deletion src/threads.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ StagePickerMorph, CustomBlockDefinition, CommentMorph*/

/*jshint esversion: 11, bitwise: false, evil: true*/

modules.threads = '2024-January-15';
modules.threads = '2024-January-18';

var ThreadManager;
var Process;
Expand Down Expand Up @@ -4587,6 +4587,7 @@ Process.prototype.packCoordinates = function (list) {
*/

Process.prototype.reportVariadicSum = function (numbers) {
if (!isNaN(+numbers)) {return +numbers; }
this.assertType(numbers, 'list');
return this.reportListAggregation(numbers, 'reportSum');
};
Expand Down

0 comments on commit 0f03487

Please sign in to comment.