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

7
LINES

< > BotCompany Repo | #1026184 // tripleMapB - apply function to b element of a triple

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

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

static <A, B, C, D> T3<A, D, C> tripleMapB(T3<A, B, C> t, IF1<B, D> f) {
  ret t == null ? null : triple(t.a, f.get(t.b), t.c);
}

static <A, B, C, D> T3<A, D, C> lambdaMapLike tripleMapB(IF1<B, D> f, T3<A, B, C> t) {
  ret tripleMapB(t, f);
}

Author comment

Began life as a copy of #1024264

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1026184
Snippet name: tripleMapB - apply function to b element of a triple
Eternal ID of this version: #1026184/3
Text MD5: b3b887ed98b45218076095ada60e4542
Transpilation MD5: 3b2fd530a99fa944adfa5b81c09361ab
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-28 00:04:04
Source code size: 249 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 110 / 179
Version history: 2 change(s)
Referenced in: [show references]