@@ -48,6 +48,7 @@ module Streamly.Internal.Data.Array.Type
49 -- ** Split
49 -- ** Split
52 -- ** Cloning arrays
53 -- ** Cloning arrays
@@ -61,7 +62,6 @@ module Streamly.Internal.Data.Array.Type
66 , toStreamK
66 , toStreamK
67 , toStreamKRev
67 , toStreamKRev
@@ -559,6 +559,7 @@ foldr f z arr = runIdentity $ D.foldr f z $ toStreamD arr
559-- | Create two slices of an array without copying the original array. The
559-- | Create two slices of an array without copying the original array. The
560-- specified index @i@ is the first index of the second slice.
560-- specified index @i@ is the first index of the second slice.
562+{-# INLINE splitAt #-}
562splitAt :: Unbox a => Int -> Array a -> (Array a, Array a)
563splitAt :: Unbox a => Int -> Array a -> (Array a, Array a)
563splitAt i arr = (unsafeFreeze a, unsafeFreeze b)
564splitAt i arr = (unsafeFreeze a, unsafeFreeze b)