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

10
LINES

< > BotCompany Repo | #1023707 // ccollect - collect field from concepts list

JavaX fragment (include)

static L ccollect(Collection<? extends Concept> c, S field) {
  new L l;
  if (c != null) for (Concept a : c)
    l.add(cget(a, field));
  ret l;
}

static L mapMethodLike ccollect(S field, Collection<? extends Concept> c) {
  ret ccollect(c, field);
}

Author comment

Began life as a copy of #1003047

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023707
Snippet name: ccollect - collect field from concepts list
Eternal ID of this version: #1023707/1
Text MD5: d019e70dfaf5ef0e789d1bf58376f391
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-03 17:25:33
Source code size: 261 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 287 / 310
Referenced in: [show references]