Libraryless. Click here for Pure Java version (2828L/18K).
sclass MMO2_LinesToPattern implements IF1<Cl<S>, S> { bool forceStartOfLine = true; bool forceEndOfLine = true; bool allowTypos = true; public S get(Cl<S> lines) { ret mmo2_combineWithOr(lmap postProcess( uniquifySortedIC(lmap simplifyUsingParse3(lines)))); } S postProcess(S s) { if (!allowTypos) s = joinWithSpace(appendToAll("!", parse3C(s))); if (forceStartOfLine) s = "^" + s; if (forceEndOfLine) s += "$"; ret s; } }
Began life as a copy of #1030081
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030083 |
Snippet name: | MMO2_LinesToPattern |
Eternal ID of this version: | #1030083/2 |
Text MD5: | 6f70f29d1a58f6155c395f5a03e2965b |
Transpilation MD5: | 5a2dc850422f7ce0a10fa584cd8e5675 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-11-06 09:29:37 |
Source code size: | 484 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 204 / 441 |
Version history: | 1 change(s) |
Referenced in: | [show references] |