Libraryless. Click here for Pure Java version (2475L/16K).
1 | sclass ParsedPowerWords {
|
2 | sclass Equation {
|
3 | S lhs, rhs; |
4 | bool bothSided; |
5 | |
6 | *() {}
|
7 | *(S *lhs, S *rhs, bool *bothSided) {}
|
8 | |
9 | toString { ret curlyIfContains("->", lhs) + (bothSided ? " <-> " : " -> ") + curlyIfContains("->", rhs); }
|
10 | } |
11 | |
12 | new L<Equation> equations; |
13 | new LPairS inequalities; |
14 | |
15 | toString {
|
16 | ret lines(concatLists(equations, (L) ll(""), map renderInequality(inequalities)));
|
17 | } |
18 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1023979 |
| Snippet name: | ParsedPowerWords |
| Eternal ID of this version: | #1023979/10 |
| Text MD5: | 92116ae530d5adaea4bda2485796cc88 |
| Transpilation MD5: | 79b7ba523d07a5ff3130469672694337 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-07-18 15:35:07 |
| Source code size: | 444 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 589 / 1131 |
| Version history: | 9 change(s) |
| Referenced in: | [show references] |