Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1020958 // conceptToMap_gen - for visualizing in e.g. a CRUD

JavaX fragment (include)

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: 346 / 375
Version history: 2 change(s)
Referenced in: [show references]