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

14
LINES

< > BotCompany Repo | #1000531 // FStringAsChars

JavaX fragment (include)

static class FStringAsChars extends ReversibleFunctionImpl {
  public O process(Object _in) {
    String in = cast _in;
    new L<S> list;
    for (int i = 0; i < in.length(); i++)
      list.add(in.substring(i, i+1));
    ret list;
  }
  
  public O unprocess(Object _in) {
    List<String> l = cast _in;
    return join("", l);
  }
}

Author comment

Began life as a copy of #1000510

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1000531
Snippet name: FStringAsChars
Eternal ID of this version: #1000531/1
Text MD5: aabe77a711c523a0cd26095637df7faa
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-10 18:29:05
Source code size: 348 bytes / 14 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 630 / 1284
Referenced in: [show references]