Uses 911K of libraries. Click here for Pure Java version (6057L/30K).
!7 cmodule AutoCompleteInput > DynQuickSearch { transient LS patterns = map appendSpace(tlft([[ current year is the current year is we write the year we are writing the year we are in the year ]])); start { moduleDescForSearch = "Auto-Complete"; } LS calc_impl() { new LS out; S q = trim(this.query); for (S pat : patterns) if (swic(pat, q)) out.add(replaceFirstPart(q, pat) + localYear()); ret out; } }
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: | #1021189 |
Snippet name: | Auto-Complete Input Spike (based on Quick Search) |
Eternal ID of this version: | #1021189/6 |
Text MD5: | 190f73d6c96c248157b57f6dc13552b8 |
Transpilation MD5: | 7b5c7ac83960d1a80f6407d7b0d8a2da |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-14 21:20:47 |
Source code size: | 499 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 298 / 4527 |
Version history: | 5 change(s) |
Referenced in: | [show references] |