Skip to content

Commit

Permalink
Inline safeReduceColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
mchav committed Jan 22, 2025
1 parent f84e75b commit a163863
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Data/DataFrame/Internal/Column.hs
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ safeReduceColumn f (BoxedColumn (column :: c)) = do
safeReduceColumn f (UnboxedColumn (column :: c)) = do
Refl <- testEquality (typeRep @c) (typeRep @a)
return $ f column
{-# INLINE safeReduceColumn #-}

longZipColumns :: Column -> Column -> Column
longZipColumns (BoxedColumn column) (BoxedColumn other) = BoxedColumn (VB.generate (max (VG.length column) (VG.length other)) (\i -> (column VG.!? i, other VG.!? i)))
Expand Down

0 comments on commit a163863

Please sign in to comment.