Recommend this page to a friend! |
All class groups | > | All authors | > | Classes of R.B. Klaassen (1) | > | Mission progress status | > | Reputation |
|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
| ||||
This is a very simple class that can be used to format an array of numbers as a sequence of number ranges. It takes an array of integer numbers and sorts the array. The class generates a string that represents sequences of contiguous numbers as ranges with the first and the last sequence number separated by dashes. Non contiguous numbers are separated commas. For instance, array(1,2,3,5,7,8,9) is transformed in the sequence "1-3, 5, 7-9". |
Ratings | Utility | Consistency | Documentation | Examples | Tests | Videos | Overall | Rank |
All time: | 83% | 83% | - | 83% | - | - | 58% | 1458 |
Month: | Not yet rated by the users |
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |