Libraryless. Click here for Pure Java version (2742L/16K).
static S[] dropFirst(int n, S[] a) { return drop(n, a); } static S[] dropFirst(S[] a) { return drop(1, a); } static O[] dropFirst(O[] a) { return drop(1, a); } static <A> L<A> dropFirst(L<A> l) { return dropFirst(1, l); } static <A> L<A> dropFirst(int n, Iterable<A> i) { ret dropFirst(n, toList(i)); } static <A> L<A> dropFirst(Iterable<A> i) { ret dropFirst(toList(i)); } static <A> L<A> dropFirst(int n, L<A> l) { ret n <= 0 ? l : new ArrayList(l.subList(Math.min(n, l.size()), l.size())); } static <A> L<A> dropFirst(L<A> l, int n) { ret dropFirst(n, l); } static S dropFirst(int n, S s) { ret substring(s, n); } static S dropFirst(S s, int n) { ret substring(s, n); } static S dropFirst(S s) { ret substring(s, 1); } ifclass Chain static <A> Chain<A> dropFirst(Chain<A> c) { ret c?.next; } endif
Began life as a copy of #1000705
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment