Libraryless. Click here for Pure Java version (1772L/12K).
1 | static T3 tripleMap(O f, T3 t) { |
2 | ret t == null ? null : triple(callF(f, t.a), callF(f, t.b), callF(f, t.c)); |
3 | } |
4 | |
5 | static <A> T3<A> tripleMap(T3<A> t, IF1<A> f) { |
6 | ret tripleMap(f, t); |
7 | } |
8 | |
9 | static <A> T3<A> tripleMap(IF1<A> f, T3<A> t) { |
10 | ret t == null ? null : triple(callF(f, t.a), callF(f, t.b), callF(f, t.c)); |
11 | } |
12 | |
13 | static T3 tripleMap(T3 t, O f) { |
14 | ret tripleMap(f, t); |
15 | } |
Began life as a copy of #1008382
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: | #1024264 |
Snippet name: | tripleMap - apply function to all elements of a triple |
Eternal ID of this version: | #1024264/2 |
Text MD5: | f9d718ddb76f5201e771578d3155b11b |
Transpilation MD5: | 20fc64b3751c7005ee481decb7f6bf21 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-28 22:27:05 |
Source code size: | 390 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 225 / 308 |
Version history: | 1 change(s) |
Referenced in: | [show references] |