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

7
LINES

< > BotCompany Repo | #1036541 // cloneDropFirst function - dropFirst + always return new list

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (455L/3K).

static <A> L<A> cloneDropFirst(int n default 1, L<A> l) {
  ret cloneSubList(l, n);
}

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

Author comment

Began life as a copy of #1000798

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036541
Snippet name: cloneDropFirst function - dropFirst + always return new list
Eternal ID of this version: #1036541/4
Text MD5: f226509ed17a679c0d3448eeeb9042bd
Transpilation MD5: 3449a50badc9c332252620eed19f1ddd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-02-12 11:26:29
Source code size: 170 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 142 / 194
Version history: 3 change(s)
Referenced in: [show references]