@@ -48,6 +48,7 @@ module Streamly.Internal.Data.Array.Type
4848
4949 -- ** Split
5050 , breakOn
51+ , splitAt
5152
5253 -- ** Cloning arrays
5354 , clone
@@ -61,7 +62,6 @@ module Streamly.Internal.Data.Array.Type
6162
6263 , foldl'
6364 , foldr
64− , splitAt
6565
6666 , toStreamK
6767 , toStreamKRev
@@ -559,6 +559,7 @@ foldr f z arr = runIdentity $ D.foldr f z $ toStreamD arr
559559-- | Create two slices of an array without copying the original array. The
560560-- specified index @i@ is the first index of the second slice.
561561--
562+{-# INLINE splitAt #-}
562563splitAt :: Unbox a => Int -> Array a -> (Array a, Array a)
563564splitAt i arr = (unsafeFreeze a, unsafeFreeze b)
564565 where