1 | static Map conceptToMap_gen(O c) { |
2 | if (c == null) null; |
3 | Map map = litorderedmap(id := str(getLong(c, 'id))); |
4 | for (S field : conceptFields_gen(c)) |
5 | mapPut(map, field, getOpt(c, field)); |
6 | ret map; |
7 | } |
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: | 348 / 378 |
Version history: | 2 change(s) |
Referenced in: | [show references] |