static Map conceptToMap_gen(O c) { if (c == null) null; Map map = litorderedmap(id := str(getLong(c, 'id))); for (S field : conceptFields_gen(c)) mapPut(map, field, getOpt(c, field)); ret map; }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020958 |
Snippet name: | conceptToMap_gen - for visualizing in e.g. a CRUD |
Eternal ID of this version: | #1020958/3 |
Text MD5: | 28b8d8aaeac64910a3a41f9f58a06d3a |
Author: | stefan |
Category: | javax / concepts |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-11-06 13:59:51 |
Source code size: | 212 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 347 / 377 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1020959 - conceptsToMaps_gen - for visualizing in e.g. a CRUD #1025995 - conceptToMap_gen_withNullValues #1031402 - conceptToMap |