Uses 911K of libraries. Click here for Pure Java version (1895L/10K).
1 | !7 |
2 | |
3 | srecord Entry(S text, S annotation) {} |
4 | |
5 | cmodule QuickAnnotator > DynObjectTable<Entry> { |
6 | start { addCountToName(); } |
7 | |
8 | // API |
9 | |
10 | void fillData(Collection<PairS> l) { |
11 | setList(map(l, p -> nu Entry(text := p.a, annotation := p.b))); |
12 | } |
13 | |
14 | void fillData(SS map) { |
15 | fillData(mapToPairs(map)); |
16 | } |
17 | |
18 | void setItems(Collection<S> l) { |
19 | fillData(map(l, s -> pair(s, ""))); |
20 | } |
21 | } |
Began life as a copy of #1024152
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024168 |
Snippet name: | Quick Annotator (table version, show list of things, allow comments) |
Eternal ID of this version: | #1024168/7 |
Text MD5: | 453ef8f683589f46bba6def171f4171b |
Transpilation MD5: | 4283bf9f2e17b63c7dd30d221a0d38f0 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-24 13:24:04 |
Source code size: | 416 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 196 / 334 |
Version history: | 6 change(s) |
Referenced in: | [show references] |