1 | static S nullOnEmpty(S s) { |
2 | ret nullIfEmpty(s); |
3 | } |
4 | |
5 | |
6 | |
7 | static Map nullOnEmpty(Map map) { |
8 | ret nullIfEmpty(map); |
9 | } |
10 | |
11 | |
12 | |
13 | static <A> L<A> nullOnEmpty(L<A> l) { |
14 | ret nullIfEmpty(l); |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019309 |
Snippet name: | nullOnEmpty - synonym of nullIfEmpty |
Eternal ID of this version: | #1019309/1 |
Text MD5: | a3289451de28c2dedfc4b3e591ecdec3 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-30 16:35:33 |
Source code size: | 183 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 453 / 507 |
Referenced in: | [show references] |