static Long ai_search_highestNumber(S term) { term += " "; long max = Long.MIN_VALUE; for (S s : fullIndexedTermsStartingWith(term)) { S i = trim(substring(s, l(term))); if (isInteger(i)) pcall-short { max = max(max, parseLong(i)); } } ret max == Long.MIN_VALUE ? null : max; }
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: | #1012520 |
| Snippet name: | ai_search_highestNumber |
| Eternal ID of this version: | #1012520/1 |
| Text MD5: | 9730d1d881b7d2f5909b21c2dd6035f1 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-06 17:38:09 |
| Source code size: | 315 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 638 / 704 |
| Referenced in: | [show references] |