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


< > BotCompany Repo | #1021399 - filterCISet

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

Libraryless. Click here for Pure Java version (2571L/16K).

static Set<S> filterCISet(Iterable<S> c, O pred) {
  Set<S> x = ciSet();
  if (c != null) for (S o : c)
    if (isTrue(callF(pred, o)))
  ret x;

static Set<S> filterCISet(O pred, Iterable c) {
  ret filterCISet(c, pred);

static Set<S> filterCISet(Iterable<S> c, IPred<S> pred) {
  ret filterCISet(c, (O) pred);

static Set<S> lambdaMapLike filterCISet(IPred<S> pred, Iterable<S> c) {
  ret filterCISet(c, (O) pred);

Author comment

Began life as a copy of #1003524

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1021399
Snippet name: filterCISet
Eternal ID of this version: #1021399/9
Text MD5: aaf0b912747e1d0d2ffba0464295643d
Transpilation MD5: 7a903137a3d3c1b017a939ea747d4db0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-12 12:23:52
Source code size: 459 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 126 / 175
Version history: 8 change(s)
Referenced in: [show references]

Formerly at &