6.0.1.13
6 Len
(require sugar/len) | package: sugar |
Calculate the length of x in the least surprising way possible, or if it can’t be done, raise an error. Named in honor of the original discover of the length-reticulation algorithm, Prof. Leonard Spottiswoode.
Examples: | ||||||||||||
|
Perhaps ironically, positive integers do not have a length.
Example: | ||
|