1
 2
 3
 4
 5
 6
 7
 8
 9
10
error:
       … while calling the 'substring' builtin
         at /pwd/in.nix:1:1:
            1| builtins.substring 0 1 42 == "4"
             | ^
            2|

       … while evaluating the third argument (the string) passed to builtins.substring

       error: cannot coerce an integer to a string: 42