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

30
LINES

< > BotCompany Repo | #1030699 // mapToArray - synonym of mapToObjectArray

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

Transpiled version (2838L) is out of date.

1  
static O[] mapToArray(Map map) {
2  
  ret mapToObjectArray(map);
3  
}
4  
5  
6  
7  
static O[] mapToArray(O f, Cl l) {
8  
  ret mapToObjectArray(f, l);
9  
}
10  
11  
12  
13  
static O[] mapToArray(O f, O[] l) {
14  
  ret mapToObjectArray(f, l);
15  
}
16  
17  
18  
19  
static <A> O[] mapToArray(Cl<A> l, IF1<A, O> f) {
20  
  ret mapToObjectArray(l, f);
21  
}
22  
23  
static <A> O[] mapToArray(A[] l, IF1<A, O> f) {
24  
  ret mapToObjectArray(f, l);
25  
}
26  
27  
28  
static <A> O[] lambdaMapLike mapToArray(IF1<A, O> f, A[] l) {
29  
  ret mapToObjectArray(f, l);
30  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030699
Snippet name: mapToArray - synonym of mapToObjectArray
Eternal ID of this version: #1030699/5
Text MD5: 5cb32acfcba15d1df1d95a28a1f58045
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-12-16 06:51:32
Source code size: 495 bytes / 30 lines
Pitched / IR pitched: No / No
Views / Downloads: 236 / 344
Version history: 4 change(s)
Referenced in: [show references]