static L<S> getClassBody(L<S> tok) { int i = 1; while (i < tok.size() && !tok.get(i).equals("{")) i += 2; return tok.subList(i+1, tok.size()-2); // assumes class is closed properly }
Began life as a copy of #1001619
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1001621 |
| Snippet name: | getClassBody |
| Eternal ID of this version: | #1001621/1 |
| Text MD5: | 21822f817022fed542faf0d37e858a22 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-10-29 18:24:59 |
| Source code size: | 197 bytes / 6 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 860 / 1058 |
| Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |