made HOF primitives hidable

pull/89/head
jmoenig 2019-04-09 19:08:35 +02:00
rodzic f86c0c7bdd
commit 3112547f73
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -79,6 +79,7 @@
* Objects, Blocks: added pen attribute reporter
* Objects: added "write" command to Pen category (same as "label" from tools
* Objects: added "map" and "for each" primitives to List category
* Objects: made HOF primitives hidable
### 2019-04-08
* Blocks, Objects, Threads: new "getSoundAttribute" reporter primitive

Wyświetl plik

@ -1264,15 +1264,13 @@ SpriteMorph.prototype.initBlocks = function () {
defaults: [1, null, localize('thing')]
},
// HOFs - experimental
// HOFs
reportMap: {
dev: true,
type: 'reporter',
category: 'lists',
spec: 'map %repRing over %l'
},
doForEach: {
dev: true,
type: 'command',
category: 'lists',
spec: 'for each %upvar in %l %cla',
@ -2592,6 +2590,8 @@ SpriteMorph.prototype.freshPalette = function (category) {
'reportCDR',
'reportListLength',
'reportListContainsItem',
'doForEach',
'reportMap',
'doAddToList',
'doDeleteFromList',
'doInsertInList',