1 | static Pair<S> splitConceptsFromStatements(S text) {
|
2 | new L<S> a; |
3 | new L<S> b; |
4 | for (S s : toLinesFullTrim_java(text)) {
|
5 | L<S> tok = javaTokC(s); |
6 | if (possibleGlobalID(get(tok, 0)) && eq(get(tok, 1), "-")) |
7 | a.add(s); |
8 | else |
9 | b.add(s); |
10 | } |
11 | ret pair(joinLines(a), joinLines(b)); |
12 | } |
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: | #1008184 |
| Snippet name: | splitConceptsFromStatements |
| Eternal ID of this version: | #1008184/3 |
| Text MD5: | ac1b64deb70a7e445a550be60de288b8 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-04-29 18:55:41 |
| Source code size: | 312 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 764 / 768 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |