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

9
LINES

< > BotCompany Repo | #1033080 - repByte

JavaX fragment (include)

static byte[] repByte(int n, int b) {
  ret repByte(n, (byte) b);
}

static byte[] repByte(int n, byte b) {
  byte[] a = new[n];
  for i to n: a[i] = b;
  ret a;
}

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: 6 / 40
Version history: 1 change(s)
Referenced in: [show references]