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

7
LINES

< > BotCompany Repo | #1018439 // lengthOfAllFields

JavaX fragment (include)

static Map<S, Int> lengthOfAllFields(O o) {
  new TreeMap<S, Int> map;
  for (S field : allFields(o)) pcall-silent {
    map.put(field, l(get(o, field)));
  }
  ret map;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018439
Snippet name: lengthOfAllFields
Eternal ID of this version: #1018439/1
Text MD5: 45aec41e7cdac1151119009f68160c0a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-30 15:32:30
Source code size: 177 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 267 / 309
Referenced in: [show references]