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

3
LINES

< > BotCompany Repo | #1027800 // transformPairB - apply a function to right element of pair

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

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

static <A, B, C> Pair<A, C> lambdaMapLike transformPairB(IF1<B, C> f, Pair<A, B> p) {
  ret p == null ? null : pair(p.a, f.get(p.b));
}

Author comment

Began life as a copy of #1013614

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: #1027800
Snippet name: transformPairB - apply a function to right element of pair
Eternal ID of this version: #1027800/3
Text MD5: 1a803eec70f38085be216863c9081e9c
Transpilation MD5: 6da9eb7a11f16d305d7aeaf6597db492
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-13 13:06:39
Source code size: 137 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 100 / 159
Version history: 2 change(s)
Referenced in: [show references]