Miscellaneous utilities.
Returns a rational value as a single number according to the specified configuration.
Parameters: |
|
---|---|
Returns: | the result and its relation to value |
Return type: | Radix * int |
Return the first element that matches the predicate or the last element in the seq.
If seq is empty, return default.
Parameters: |
|
---|
Change a numeric relation to a string symbol.
Parameters: | relation (int) – the relation |
---|---|
Returns: | a symbol with the right relation to relation |
Return type: | str |
Strip trailing zeros from a list of ints.
Parameters: | value (list of str) – the value to be stripped |
---|---|
Returns: | list with trailing zeros stripped |
Return type: | list of int |