Transpiled version (2955L) is out of date.
static <A> double sortedPercentage(Cl<A> l, Comparator<A> comparator default null) { new Scorer scorer; Iterator<A> it = iterator(l); if (it.hasNext()) { A a = it.next(); while (it.hasNext()) { A b = it.next(); scorer.add(compareWithComparator(comparator, a, b) <= 0); a = b; } } ret scorer.percentScore(); }
Began life as a copy of #1005380
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030423 |
| Snippet name: | sortedPercentage - how sorted is a list? |
| Eternal ID of this version: | #1030423/5 |
| Text MD5: | d6ed5195bb3471db4e1892b859b4caea |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-12-15 18:37:57 |
| Source code size: | 361 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 442 / 565 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |