Skip to content
wolfram77 edited this page Mar 31, 2020 · 23 revisions

Gets value at index.

Similar: one, all.

iterable.get(x, i);
// x: an iterable
// i: index
const iterable = require('extra-iterable');

var x = [2, 4, 6, 8];
iterable.get(x, 1);
// 4

iterable.get(x, 3);
// 8

references

Clone this wiki locally