Libraryless. Click here for Pure Java version (60L/1K).
1 | sbool isSortedList(Cl l) { |
2 | Iterator it = iterator(l); |
3 | if (!it.hasNext()) true; |
4 | O a = it.next(); |
5 | while (it.hasNext()) { |
6 | O b = it.next(); |
7 | if (cmp(a, b) > 0) |
8 | false; |
9 | a = b; |
10 | } |
11 | true; |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1005380 |
Snippet name: | isSortedList |
Eternal ID of this version: | #1005380/2 |
Text MD5: | fcc0384fcf6c5c3b516e77ac8a649260 |
Transpilation MD5: | 7d8503be89b9983a0ff80ce49132376f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-23 14:03:36 |
Source code size: | 220 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 576 / 835 |
Version history: | 1 change(s) |
Referenced in: | [show references] |