-
Notifications
You must be signed in to change notification settings - Fork 1
get
wolfram77 edited this page Mar 27, 2020
·
23 revisions
Gets value at index (+ve, -ve).
Alternatives: one, all, fractional.
iterable.get(x, i);
// x: an iterable
// i: index (-ve: from right)
// --> value
const iterable = require('extra-iterable');
var x = [2, 4, 6, 8];
iterable.get(x, 1);
// 4
iterable.get(x, -1);
// 8