Skip to content
wolfram77 edited this page Mar 26, 2020 · 18 revisions

Removes last value.

Alternatives: default, update.
Similar: push, pop, shift, unshift.

array.pop$(x);
// x: an array (updated)
// --> value
const array = require('extra-array');

var x = [1, 2, 3];
array.pop$(x);
// 3

x;
// [1, 2]

array.pop$(x);
// 2

references

Clone this wiki locally