1 | Iterator linearProduce(Concept c) {
|
2 | if (c.closed) |
3 | return new ListIterator(c.stringExamples); |
4 | S[] s = c.matchDescription("concatenation of *");
|
5 | if (s != null) {
|
6 | Concept element = singular(s[0]); |
7 | return produceConcatenation(element); |
8 | } |
9 | } |
10 | |
11 | Iterator produceConcatenation(Concept c) {
|
12 | return new Iterator() {
|
13 | static final int n = 2; |
14 | boolean hasNext() { return i < n; }
|
15 | (""); todo
|
16 | } |
17 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1000770 |
| Snippet name: | linearProduce (developing) |
| Eternal ID of this version: | #1000770/1 |
| Text MD5: | 0c1fbd5585ec5cb38d6d7f653852eb65 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-08-26 20:55:41 |
| Source code size: | 430 bytes / 17 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 769 / 751 |
| Referenced in: | [show references] |