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

40
LINES

< > BotCompany Repo | #1028404 // lambdaFilter - synonym of filter

JavaX fragment (include)

static <A> L<A> lambdaFilter(Iterable<A> c, O pred) {
  ret filter(c, pred);
}



static L lambdaFilter(O pred, Iterable c) {
  ret filter(pred, c);
}



static <A, B extends A> L<B> lambdaFilter(Iterable<B> c, F1<A, Bool> pred) {
  ret filter(c, pred);
}



static <A, B extends A> L<B> lambdaFilter(F1<A, Bool> pred, Iterable<B> c) {
  ret filter(pred, c);
}



//ifclass IF1
static <A, B extends A> L<B> lambdaFilter(Iterable<B> c, IF1<A, Bool> pred) {
  ret filter(c, pred);
}



static <A, B extends A> L<B> lambdaFilter(B[] c, IF1<A, Bool> pred) {
  ret filter(c, pred);
}



static <A, B extends A> L<B> lambdaMapLike lambdaFilter(IF1<A, Bool> pred, Iterable<B> c) {
  ret filter(pred, c);
}

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: #1028404
Snippet name: lambdaFilter - synonym of filter
Eternal ID of this version: #1028404/1
Text MD5: edcbfbe00405e8614cc0f53cc72aa156
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-16 01:49:26
Source code size: 711 bytes / 40 lines
Pitched / IR pitched: No / No
Views / Downloads: 163 / 202
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)