Libraryless. Click here for Pure Java version (2695L/17K).
svoid test_metaTransformer_transformableAndList() { transformable record Rec(S yo) {} IF1 f = o -> o instanceof S ? upper(o/S) : null; MetaTransformer tf = metaTransformer_transformableAndList(); assertEqualsVerbose(ll("BLA", "BLU"), tf.transform(f, ll("bla", "blu"))); assertEqualsVerbose(ll(new Rec("TEST"), 5), tf.transform(f, ll(new Rec("test"), 5))); }
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: | #1027776 |
Snippet name: | test_metaTransformer_transformableAndList (OK) |
Eternal ID of this version: | #1027776/7 |
Text MD5: | 04ea1b9cd1f80f5cf6dbba718b1e968f |
Transpilation MD5: | fd4bfe33a618069984f0c2ee141e4bc6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-04-11 13:00:55 |
Source code size: | 381 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 193 / 341 |
Version history: | 6 change(s) |
Referenced in: | [show references] |