Skip to content
Subhajit Sahu edited this page Dec 28, 2022 · 13 revisions

Get ilists without its first entry (default order).

Similar: head, tail.


function tail(x)
// x: ilists
const xilists = require('extra-ilists');

var x = [['a', 'b', 'c'], [1, 2, 3]];
xilists.tail(x).map(c => [...c]);
// → [ [ 'b', 'c' ], [ 2, 3 ] ]

var x = [['a'], [1]];
xilists.tail(x).map(c => [...c]);
// → [ [], [] ]


References

Clone this wiki locally