Transpiled version (2934L) is out of date.
// returns ranges from C to N static L<IntRange> fullPhraseCache_tokenRanges(FullPhraseCache cache, LS tok) { new L<IntRange> out; if (cache == null) ret out; for (int i = 1; i < l(tok); i += 2) { int j = fullPhraseCache_longestPhraseLength(cache, tok, i); if (j > i) { out.add(IntRange(i, j-1)); i = j; } } ret out; }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1026398 |
| Snippet name: | fullPhraseCache_tokenRanges |
| Eternal ID of this version: | #1026398/2 |
| Text MD5: | a7455394096981ee40da98e99b381987 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-01-02 14:15:07 |
| Source code size: | 366 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 404 / 522 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |