nix-repl> assert (map (_: "x") [1..2]) == [ "x" "x" ]; 1
1
nix-repl> 1..2
error: attempt to call something which is not a function but a float, at (string):1:1
nix-repl> [1..2]
[ 1 0.2 ]
I think 1. probably should be a parsing error.
Hmm :)
nix-repl> [1.2.3.4]
[ 1.2 0.3 0.4 ]
Parsing 1. as 1 appears to be consistent with other languages (C/C++, Python, Perl, ...).