We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b50d8dc commit 1a8d3e4Copy full SHA for 1a8d3e4
html/perlito5.js
@@ -1061,11 +1061,15 @@ function p5ArrayOfAlias(o) {
1061
}
1062
return this._array_.length / 2;
1063
1064
-
1065
- // TODO - shift()
1066
1067
- // TODO - pop()
1068
+ this.shift = function () {
+ var v0 = this._array_.shift();
+ return v0[this._array_.shift()];
+ }
+ this.pop = function () {
1069
+ var v1 = this._array_.pop();
1070
+ var v0 = this._array_.pop();
1071
+ return v0[v1];
1072
1073
1074
1075
0 commit comments