fromListN n xs = fromList (take n xs)
fromListN n xs = fromList (take n xs)
fromListN n xs = fromList (take n xs)
>>> import qualified Data.Vector.Strict as V >>> V.fromListN 3 [1,2,3,4,5] [1,2,3] >>> V.fromListN 3 [1] [1]
fromListN n xs = fromList (take n xs)
>>> import qualified Data.Vector.Primitive as VP >>> VP.fromListN 3 [1,2,3,4,5 :: Int] [1,2,3] >>> VP.fromListN 3 [1 :: Int] [1]
fromListN n xs = fromList (take n xs)
>>> import qualified Data.Vector.Storable as VS >>> VS.fromListN 3 [1,2,3,4,5 :: Int] [1,2,3] >>> VS.fromListN 3 [1 :: Int] [1]
fromListN n xs = fromList (take n xs)
>>> import qualified Data.Vector.Unboxed as VU >>> VU.fromListN 3 [1,2,3,4,5 :: Int] [1,2,3] >>> VU.fromListN 3 [1 :: Int] [1]