From f05bd654e8ed6e1753c4bce82e7e911f33844110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Fri, 11 Mar 2022 10:23:51 +0100 Subject: [PATCH] added "combinations" primitive to the palette --- HISTORY.md | 2 ++ snap.html | 2 +- src/objects.js | 6 ++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 43d6b574..63f4c733 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -3,6 +3,7 @@ ## in development: * **New Features:** * export / import sprite-local custom block definitions, under construction + * added "combinations" primitive to the palette * **Notable Changes:** * **Notable Fixes:** * guard against broken SVG costumes when loading a project @@ -12,6 +13,7 @@ ### 2022-03-11 * blocks: fixed an edge case for slot type inferral +* objects: added "combinations" primitive to the palette ### 2022-03-10 * gui: made dev-warning closeable and added official url diff --git a/snap.html b/snap.html index c3faae43..a6a7e9b4 100755 --- a/snap.html +++ b/snap.html @@ -18,7 +18,7 @@ - + diff --git a/src/objects.js b/src/objects.js index 7e85c45f..8e68216c 100644 --- a/src/objects.js +++ b/src/objects.js @@ -87,7 +87,7 @@ BlockVisibilityDialogMorph, CostumeIconMorph, SoundIconMorph*/ /*jshint esversion: 6*/ -modules.objects = '2022-March-09'; +modules.objects = '2022-March-11'; var SpriteMorph; var StageMorph; @@ -1431,7 +1431,7 @@ SpriteMorph.prototype.initBlocks = function () { category: 'lists', spec: 'append %lists' }, - reportCrossproduct: { // as relabel option for "append" + reportCrossproduct: { type: 'reporter', category: 'lists', spec: 'combinations %lists' @@ -2794,6 +2794,7 @@ SpriteMorph.prototype.blockTemplates = function ( blocks.push('-'); blocks.push(block('reportConcatenatedLists')); blocks.push(block('reportReshape')); + blocks.push(block('reportCrossproduct')); blocks.push('-'); blocks.push(block('doAddToList')); blocks.push(block('doDeleteFromList')); @@ -9197,6 +9198,7 @@ StageMorph.prototype.blockTemplates = function ( blocks.push('-'); blocks.push(block('reportConcatenatedLists')); blocks.push(block('reportReshape')); + blocks.push(block('reportCrossproduct')); blocks.push('-'); blocks.push(block('doAddToList')); blocks.push(block('doDeleteFromList'));