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

5
LINES

< > BotCompany Repo | #1032652 // asListMinusLast - always returns a new ArrayList (no wrapping)

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

Libraryless. Click here for Pure Java version (3834L/22K).

// never returns null

static <A> ArrayList<A> asListMinusLast(A[] a) {
  ret removeLastAndReturnList(asList(a));
}

Author comment

Began life as a copy of #1000999

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032652
Snippet name: asListMinusLast - always returns a new ArrayList (no wrapping)
Eternal ID of this version: #1032652/1
Text MD5: 93c7c615ee8eedfc061f522cf65901b5
Transpilation MD5: 01bd78f4fad8f67aaac5db46b44eb8c3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-30 04:47:34
Source code size: 119 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 73 / 107
Referenced in: [show references]