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

6
LINES

< > BotCompany Repo | #1033631 // stringFromFunction

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

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

1  
sS stringFromFunction(int length, IF1_IntToChar f) {
2  
  char[] chars = new[length];
3  
  for i to length:
4  
    chars[i] = f.get(i);
5  
  ret String.valueOf(chars);
6  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033631
Snippet name: stringFromFunction
Eternal ID of this version: #1033631/2
Text MD5: feb6a950681f5436801770810b380bf7
Transpilation MD5: ae7a8cd23329c0fef68c8ee1212ca015
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-12-22 14:40:10
Source code size: 162 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 81 / 129
Version history: 1 change(s)
Referenced in: [show references]