1 | static class FStringAsChars extends ReversibleFunctionImpl { |
2 | public O process(Object _in) { |
3 | String in = cast _in; |
4 | new L<S> list; |
5 | for (int i = 0; i < in.length(); i++) |
6 | list.add(in.substring(i, i+1)); |
7 | ret list; |
8 | } |
9 | |
10 | public O unprocess(Object _in) { |
11 | List<String> l = cast _in; |
12 | return join("", l); |
13 | } |
14 | } |
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: | 631 / 1286 |
Referenced in: | [show references] |