Haskell语言学习笔记(55)Data.Vector
程序员文章站
2022-03-01 15:45:38
...
Data.Vector
Construction
Prelude V> import Data.Vector as V
Prelude V> V.empty
[]
Prelude V> V.singleton 1
[1]
Prelude V> V.replicate 5 1
[1,1,1,1,1]
Prelude V> generate 5 (+1)
[1,2,3,4,5]
Prelude V> iterateN 5 (*2) 1
[1,2,4,8,16]
上一篇: JSON总结
下一篇: Json篇-Json详解