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

9
LINES

< > BotCompany Repo | #1022927 // removeAndReturnCollection - remove element from list/collection

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

Libraryless. Click here for Pure Java version (2801L/16K).

1  
static <A> L<A> removeAndReturnCollection(L<A> l, int i) {
2  
  remove(l, i);
3  
  ret l;
4  
}
5  
6  
static <A, B extends Cl<A>> B removeAndReturnCollection(B l, A a) {
7  
  remove(l, a);
8  
  ret l;
9  
}

Author comment

Began life as a copy of #1007500

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022927
Snippet name: removeAndReturnCollection - remove element from list/collection
Eternal ID of this version: #1022927/2
Text MD5: 90af2e5c6ce94284ac9d8be8a4b64563
Transpilation MD5: 1a50785ead63af6265cf536dbe7c8722
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-21 22:34:49
Source code size: 189 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 297 / 362
Version history: 1 change(s)
Referenced in: [show references]