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

11
LINES

< > BotCompany Repo | #1030914 // cForwardRefs (for concepts)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (15065L/97K).

static <A extends Concept> Cl<A> cForwardRefs(Concept c, Class<A> type) {
  ret c == null ?: instancesOf(type, cForwardRefs(c));
}
  
static <A extends Concept> Cl<A> nuLike cForwardRefs(Class<A> type, Concept c) {
  ret cForwardRefs(c, type);
}

static Cl<Concept> cForwardRefs(Concept c) {
  ret c == null ?: lmap derefRef(c._refs());
}

Author comment

Began life as a copy of #1007228

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030914
Snippet name: cForwardRefs (for concepts)
Eternal ID of this version: #1030914/3
Text MD5: 6221e5e9a1c7c11cf060b8e37b020c02
Transpilation MD5: 125ec3d5a957333c08cd08e687271f0f
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-12 23:28:30
Source code size: 350 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 148 / 227
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1030915 - cForwardAndBackRefs (for concepts)
#1030922 - cForwardRefsWithFieldNames