@@ -336,13 +336,13 @@ rec {
336336 /* Convert the given positive integer to a string of its hexadecimal
337337 representation. For example:
338338
339− toHex 0 => "0"
339+ toHexString 0 => "0"
340340
341− toHex 16 => "10"
341+ toHexString 16 => "10"
342342
343− toHex 250 => "FA"
343+ toHexString 250 => "FA"
344344 */
345− toHex = i:
345+ toHexString = i:
346346 let
347347 toHexDigit = d:
348348 if d < 10
@@ -357,18 +357,18 @@ rec {
357357 "15" = "F";
358358 }.${toString d};
359359 in
360− lib.concatMapStrings toHexDigit (toBase 16 i);
360+ lib.concatMapStrings toHexDigit (toBaseDigits 16 i);
361361
362− /* `toBase base i` converts the positive integer i to a list of its
362+ /* `toBaseDigits base i` converts the positive integer i to a list of its
363363 digits in the given base. For example:
364364
365− toBase 10 123 => [ 1 2 3 ]
365+ toBaseDigits 10 123 => [ 1 2 3 ]
366366
367− toBase 2 6 => [ 1 1 0 ]
367+ toBaseDigits 2 6 => [ 1 1 0 ]
368368
369− toBase 16 250 => [ 15 10 ]
369+ toBaseDigits 16 250 => [ 15 10 ]
370370 */
371− toBase = base: i:
371+ toBaseDigits = base: i:
372372 let
373373 go = i:
374374 if i < base