Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

17
LINES

< > BotCompany Repo | #1022897 // Salvage curly phrases in input

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (7618L/40K).

!7

cmodule SalvageCurlyPhrases > DynBigInputAndList {
  visual withRightAlignedButtons(super, "Save phrases", rThread savePhrases);
  
  JComponent wrapListComponent(JComponent component) {
    ret jSection("Phrases found", component);
  }
  
  void makeList_impl {
    setList(map curlyOpt(uniquifyCI(allCurlyBracketPhrases(text))));
  }
  
  void savePhrases enter {
    addToMechCISet("General phrases (long list)", map uncurly(list()));
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022897
Snippet name: Salvage curly phrases in input
Eternal ID of this version: #1022897/7
Text MD5: 296b5467088e12ed380af1e18143d6e3
Transpilation MD5: bd2950c6ca44e12629489b3a16f42fee
Author: stefan
Category: javax / stefan's os / a.i.
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-14 19:05:52
Source code size: 463 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 173 / 554
Version history: 6 change(s)
Referenced in: [show references]