diff --git a/snap.html b/snap.html index 1358092d..de3b6db8 100755 --- a/snap.html +++ b/snap.html @@ -10,7 +10,7 @@ - + diff --git a/src/gui.js b/src/gui.js index 756fef06..ae09ca8e 100644 --- a/src/gui.js +++ b/src/gui.js @@ -78,7 +78,7 @@ Animation, BoxMorph, BlockEditorMorph, BlockDialogMorph, Note*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2020-June-08'; +modules.gui = '2020-June-22'; // Declarations @@ -3437,6 +3437,30 @@ IDE_Morph.prototype.settingsMenu = function () { 'check to enable\nusing operators on lists and tables', false ); + if (Process.prototype.enableHyperOps) { + addPreference( + 'APL-style scalars', + () => { + Process.prototype.enableAPLscalars = + !Process.prototype.enableAPLscalars; + if (Process.prototype.enableAPLscalars) { + Process.prototype.hyperDyadic = + Process.prototype.hyperDyadicAPL; + Process.prototype.hyperZip = + Process.prototype.hyperZipAPL; + } else { + Process.prototype.hyperDyadic = + Process.prototype.hyperDyadicSimple; + Process.prototype.hyperZip = + Process.prototype.hyperZipSimple; + } + }, + Process.prototype.enableAPLscalars, + 'uncheck to disable treating (nested)\nsingle-itemlists as scalars', + 'check to treat (nested)\nsingle-itemlists as scalars', + true + ); + } addPreference( 'Persist linked sublist IDs', () => StageMorph.prototype.enableSublistIDs =