Libraryless. Click here for Pure Java version (2137L/14K).
1 | static L<AbstractAction> paramsToAbstractActions(O... params) {
|
2 | new L<AbstractAction> l; |
3 | for (int i = 0; i+1 < l(params); i += 2) {
|
4 | S text = cast params[i]; |
5 | Runnable action = cast params[i+1]; |
6 | if (nempty(text)) |
7 | l.add(abstractAction(text, action)); |
8 | } |
9 | ret l; |
10 | } |
Began life as a copy of #1019464
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: | #1026801 |
| Snippet name: | paramsToAbstractActions |
| Eternal ID of this version: | #1026801/1 |
| Text MD5: | 3309aa14ef054e039544755a7139c416 |
| Transpilation MD5: | 4994449c1fca7c0306a4388f88e29f46 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-01-23 16:25:38 |
| Source code size: | 293 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 514 / 675 |
| Referenced in: | [show references] |