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

10
LINES

< > BotCompany Repo | #1028942 // too_thinkAndReturnObjectsOfType

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

Libraryless. Click here for Pure Java version (5955L/38K).

static <A> L<A> nuLike too_thinkAndReturnObjectsOfType(Class<A> type, TransformersOnObjects too) {
  new L<A> out;
  too.addTransformer(func(O o) {
    if (isInstance(type, o))
      out.add((A) o);
    null;
  });
  too.think();
  ret out;
}

Author comment

Began life as a copy of #1028840

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1028942
Snippet name: too_thinkAndReturnObjectsOfType
Eternal ID of this version: #1028942/1
Text MD5: caa7c2313ecb046a01bfdb24dee593e0
Transpilation MD5: 8774ea02e66480efef61532ad57346d1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-12 13:13:30
Source code size: 251 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 137 / 199
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1030705 - too_think