Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1029165 // assertSorted

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2565L/16K).

static <A extends Cl> A assertSorted(A l) {
  if (!isSortedList(l))
    fail(shorten("List isn't sorted: " + l));
  ret l;
}

Author comment

Began life as a copy of #1005380

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: #1029165
Snippet name: assertSorted
Eternal ID of this version: #1029165/3
Text MD5: 550759cb0bbe1513378f2e7a9f907db7
Transpilation MD5: 7bb779f347d18d0c0abb1e7611504760
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:05:02
Source code size: 128 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 234 / 319
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1030160 - assertCIMap