Libraryless. Click here for Pure Java version (4509L/25K).
1 | static <A, B> IF1<A, B> if1WithToString(S toString, IF1<A, B> f) { |
2 | ret f == null ?: new IF1<A, B>() { |
3 | public B get(A a) { |
4 | ret f.get(a); |
5 | } |
6 | |
7 | toString { ret toString; } |
8 | }; |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): bhatertpkbcr, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033376 |
Snippet name: | if1WithToString |
Eternal ID of this version: | #1033376/3 |
Text MD5: | 038f963a24f21a25c8d2450908c55aa5 |
Transpilation MD5: | 86fba2cb19c314a7e64ca2cbeb872574 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-26 23:51:39 |
Source code size: | 204 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 129 / 180 |
Version history: | 2 change(s) |
Referenced in: | [show references] |