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

5
LINES

< > BotCompany Repo | #1021567 // addAllReversed

JavaX fragment (include)

static <A> void addAllReversed(Collection<A> dest, L<A> src) {
  if (dest == null) ret;
  for (int i = l(src)-1; i >= 0; i--)
    dest.add(src.get(i));
}

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: #1021567
Snippet name: addAllReversed
Eternal ID of this version: #1021567/1
Text MD5: ea57b75401f31e161c4909efe4d35461
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-18 15:54:37
Source code size: 157 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 347 / 371
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)