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

9
LINES

< > BotCompany Repo | #1033080 // repByte

JavaX fragment (include)

1  
static byte[] repByte(int n, int b) {
2  
  ret repByte(n, (byte) b);
3  
}
4  
5  
static byte[] repByte(int n, byte b) {
6  
  byte[] a = new[n];
7  
  for i to n: a[i] = b;
8  
  ret a;
9  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033080
Snippet name: repByte
Eternal ID of this version: #1033080/2
Text MD5: 92fefe636a23bc79f6093223c1fb841d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-14 05:01:34
Source code size: 171 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 114 / 165
Version history: 1 change(s)
Referenced in: [show references]