Inconsistent behavior of array of numbers
Created by: AgustinCB
Reproduction:
agustin:~/projects/ion# let a = [1]
agustin:~/projects/ion# echo $len($a)
0
agustin:~/projects/ion# let a = [1 2]
agustin:~/projects/ion# echo $len($a)
0
agustin:~/projects/ion# echo $len([1 2])
2
agustin:~/projects/ion# echo $len([1])
0
agustin:~/projects/ion#
Expected behavior: Not sure
Actual behavior: See above
Build information:
agustin@agustin-laptop:~/projects/ion$ rustc -V
rustc 1.23.0-nightly (a35a3abcd 2017-11-10)
agustin@agustin-laptop:~/projects/ion$ git rev-parse HEAD
c1a1834a128edbf737fa0dfe171b09909cbbff8b
agustin@agustin-laptop:~/projects/ion$ uname -a
Linux agustin-laptop 4.13.11-1-ARCH #1 SMP PREEMPT Thu Nov 2 10:25:56 CET 2017 x86_64 GNU/Linux
I don't really know what should be the actual behavior. Ideas?