CPLIB_UTILS_INVERSION_NUMBER = 1
proc inversion_number(a: openArray[int]): int {....raises: [Exception], tags: [RootEffect].}
Example:
var a = @[2, 1, 5, 3, 4] assert inversion_number(a) == 3