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

3
LINES

< > BotCompany Repo | #1020854 // shallowCloneListToFieldPairs

JavaX fragment (include)

static <A, B> LPair<A, B> shallowCloneListToFieldPairs(fS fieldA, fS fieldB, Iterable l) {
  ret map(l, func(O o) -> Pair<A, B> { pair((A) getOpt(o, fieldA), (B) getOpt(o, fieldB)) });
}

Author comment

Began life as a copy of #1020417

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1020854
Snippet name: shallowCloneListToFieldPairs
Eternal ID of this version: #1020854/3
Text MD5: 78aa9ea69851a1acac5843e259283e57
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-05 17:08:21
Source code size: 188 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 292 / 316
Version history: 2 change(s)
Referenced in: [show references]