@Arrrrrrrrr : if you are on devel, you can use 
[mapLiterals](https://github.com/nim-lang/Nim/blob/devel/lib/pure/collections/sequtils.nim#L721)
 from sequtils
    
    
    import sequtils
    let x = mapLiterals([0.1, 1.2, 2.3, 3.4], int)
    doAssert x is array[4, int]
    

Reply via email to