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

72
LINES

< > BotCompany Repo | #1028913 // mAp - synonym of map

JavaX fragment (include)

1  
static L mAp(Iterable l, O f) {
2  
  ret map(l, f);
3  
}
4  
5  
6  
7  
static L mAp(O f, Iterable l) {
8  
  ret map(f, l);
9  
}
10  
11  
12  
  static <A, B> L<B> mAp(Iterable<A> l, F1<A, B> f) {
13  
  ret map(l, f);
14  
}
15  
16  
17  
18  
  static <A, B> L<B> mAp(F1<A, B> f, Iterable<A> l) {
19  
  ret map(f, l);
20  
}
21  
22  
23  
24  
static <A, B> L<B> mAp(IF1<A, B> f, Iterable<A> l) {
25  
  ret map(f, l);
26  
}
27  
28  
29  
static <A, B> L<B> mAp(Iterable<A> l, IF1<A, B> f) {
30  
  ret map(l, f);
31  
}
32  
33  
34  
  
35  
static <A, B> L<B> mAp(IF1<A, B> f, A[] l) {
36  
  ret map(f, l);
37  
}
38  
39  
40  
static <A, B> L<B> mAp(A[] l, IF1<A, B> f) {
41  
  ret map(l, f);
42  
}
43  
44  
45  
  
46  
static L mAp(O f, O[] l) {
47  
  ret map(f, l);
48  
}
49  
50  
51  
static L mAp(O[] l, O f) {
52  
  ret map(l, f);
53  
}
54  
55  
56  
57  
static L mAp(O f, Map map) {
58  
  ret map(f, map);
59  
}
60  
61  
62  
63  
// map: func(key, value) -> list element
64  
static L mAp(Map map, O f) {
65  
  ret map(map, f);
66  
}
67  
68  
69  
70  
static <A, B, C> L<C> mAp(Map<A, B> map, IF2<A, B, C> f) {
71  
  ret map(map, f);
72  
}

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: #1028913
Snippet name: mAp - synonym of map
Eternal ID of this version: #1028913/1
Text MD5: 191b125ba62648680690c71fe10a82e7
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-11 21:28:24
Source code size: 889 bytes / 72 lines
Pitched / IR pitched: No / No
Views / Downloads: 208 / 227
Referenced in: [show references]