Libraryless. Click here for Pure Java version (2341L/15K/51K).
!7 sclass Logic { new L<S> assumptions; new L<Lisp> parsedAssumptions; void assume(S s) { assumptions.add(s); parsedAssumptions.add(assertNotNull(clParse(s))); } void verifyCalculator(S concept, O calc) { for (Lisp a : parsedAssumptions) if (a.headIs(concept)) print("Checking " + a); } } p-type { new Logic l; l.assume("iwuamaiejhsykake 'vjyukwvgqzhfcxme HELLO' 1"); l.assume("iwuamaiejhsykake 'vjyukwvgqzhfcxme HELLO, vjyukwvgqzhfcxme WORLD' 2"); psl(l.parsedAssumptions); l.verifyCalculator("iwuamaiejhsykake", func(S s) { l(tokSplitAtComma(s)) }); }
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: | #1007454 |
Snippet name: | Drawing Commands Logic [dev.] |
Eternal ID of this version: | #1007454/9 |
Text MD5: | 0d29c9c7dcb5516b5d44a962cfdbf67d |
Transpilation MD5: | eff6a64092c3ded45905d635c750cd35 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-23 22:28:23 |
Source code size: | 633 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 534 / 666 |
Version history: | 8 change(s) |
Referenced in: | [show references] |