static S emptyToNull(S s) { ret eq(s, "") ? null : s; } static <A, B> Map<A, B> emptyToNull(Map<A, B> map) { ret empty(map) ? null : map; }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002058 |
Snippet name: | emptyToNull function |
Eternal ID of this version: | #1002058/2 |
Text MD5: | 6cba74ac10bc9bc059aa6c3eea93d3c8 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-12 22:53:57 |
Source code size: | 150 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 761 / 2341 |
Version history: | 1 change(s) |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000382 - Answer for ferdie (>> t = 1, f = 0) |