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

6
LINES

< > BotCompany Repo | #1026536 // llPairs

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

Libraryless. Click here for Pure Java version (2135L/14K).

static <A> LPair<A> llPairs(A... l) {
  new LPair<A> out;
  for (int i = 0; i+1 < l(l); i += 2)
    addPair(out, l[i], l[i+1]);
  ret out;
}

Author comment

Began life as a copy of #1012218

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1026536
Snippet name: llPairs
Eternal ID of this version: #1026536/1
Text MD5: 98480bdabfc02450f599e7c5b813abb7
Transpilation MD5: 6e1f1263489d70b763f899087fa5982a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-11 21:57:30
Source code size: 145 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 180 / 264
Referenced in: [show references]