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

15
LINES

< > BotCompany Repo | #1002635 // rep - synonym of repeat

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

Libraryless. Click here for Pure Java version (63L/1K).

1  
static String rep(int n, char c) {
2  
  ret repeat(c, n);
3  
}
4  
5  
static String rep(char c, int n) {
6  
  ret repeat(c, n);
7  
}
8  
9  
static <A> L<A> rep(A a, int n) {
10  
  ret repeat(a, n);
11  
}
12  
13  
static <A> L<A> rep(int n, A a) {
14  
  ret repeat(n, a);
15  
}

Author comment

Began life as a copy of #1002222

download  show line numbers  debug dex  old transpilations   

Travelled to 20 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, odhhsrjjbcgr, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1002635
Snippet name: rep - synonym of repeat
Eternal ID of this version: #1002635/3
Text MD5: c47e64ed58cd0d7ba2a2261dfe23dd9f
Transpilation MD5: d3b28a390340ecc06cccda7711a5c103
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-13 17:23:43
Source code size: 244 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 670 / 1314
Version history: 2 change(s)
Referenced in: [show references]