////
export sort=1
////

= Nix string padding

[source,nix]
----
padString = (n: if n < 10 then "0" + toString n else toString n)
----
