Uses 911K of libraries. Click here for Pure Java version (6057L/30K).
1 | !7 |
2 | |
3 | cmodule AutoCompleteInput > DynQuickSearch { |
4 | transient LS patterns = map appendSpace(tlft([[ |
5 | current year is |
6 | the current year is |
7 | we write the year |
8 | we are writing the year |
9 | we are in the year |
10 | ]])); |
11 | |
12 | start { |
13 | moduleDescForSearch = "Auto-Complete"; |
14 | } |
15 | |
16 | LS calc_impl() { |
17 | new LS out; |
18 | S q = trim(this.query); |
19 | for (S pat : patterns) |
20 | if (swic(pat, q)) |
21 | out.add(replaceFirstPart(q, pat) + localYear()); |
22 | ret out; |
23 | } |
24 | } |
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: | 300 / 4529 |
Version history: | 5 change(s) |
Referenced in: | [show references] |