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

Removes first value.

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

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

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

x;
// [2, 3]

array.shift$(x);
// 2

references

Clone this wiki locally