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)

1  
static <A> L<A> lambdaFilter(Iterable<A> c, O pred) {
2  
  ret filter(c, pred);
3  
}
4  
5  
6  
7  
static L lambdaFilter(O pred, Iterable c) {
8  
  ret filter(pred, c);
9  
}
10  
11  
12  
13  
static <A, B extends A> L<B> lambdaFilter(Iterable<B> c, F1<A, Bool> pred) {
14  
  ret filter(c, pred);
15  
}
16  
17  
18  
19  
static <A, B extends A> L<B> lambdaFilter(F1<A, Bool> pred, Iterable<B> c) {
20  
  ret filter(pred, c);
21  
}
22  
23  
24  
25  
//ifclass IF1
26  
static <A, B extends A> L<B> lambdaFilter(Iterable<B> c, IF1<A, Bool> pred) {
27  
  ret filter(c, pred);
28  
}
29  
30  
31  
32  
static <A, B extends A> L<B> lambdaFilter(B[] c, IF1<A, Bool> pred) {
33  
  ret filter(c, pred);
34  
}
35  
36  
37  
38  
static <A, B extends A> L<B> lambdaMapLike lambdaFilter(IF1<A, Bool> pred, Iterable<B> c) {
39  
  ret filter(pred, c);
40  
}

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: 164 / 203
Referenced in: [show references]