Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1018448 // takeLast_virtual function - takeLast with virtual (instantaneous) sublist

JavaX fragment (include)

static <A> L<A> takeLast_virtual(L<A> l, int n) {
  return subList(l, l(l)-n);
}

static <A> L<A> takeLast_virtual(int n, L<A> l) {
  ret takeLast_virtual(l, n);
}

Author comment

Began life as a copy of #1003099

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018448
Snippet name: takeLast_virtual function - takeLast with virtual (instantaneous) sublist
Eternal ID of this version: #1018448/1
Text MD5: 8de48ada9e2193032ff7194684c8919a
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-30 19:44:40
Source code size: 169 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 328 / 373
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)