Libraryless. Click here for Pure Java version (2602L/16K).
svoid test_optOutParam() { embedded void bla(int i, O... _) { optOutParam(_, out := str(i)); } bla(3); new Var v; bla(5, out := v); assertEqualsVerbose("5", v!); bla(10, litmapparams(out := v)); assertEqualsVerbose("10", v!); }
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: | #1028773 |
Snippet name: | test_optOutParam (OK) |
Eternal ID of this version: | #1028773/4 |
Text MD5: | ff3eec4382edfe8a8de53a31e28790d1 |
Transpilation MD5: | a784d4b1668acb796791f93eb6221bcb |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-08 15:30:22 |
Source code size: | 261 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 187 / 283 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |