Skip to content

Commit 9f02fe3

Browse files
kianbroderickKian Broderick
andauthored
feat: give name to firstOrNothing (#145)
Co-authored-by: Kian Broderick <kianbroderick@Kians-MacBook-Pro.local>
1 parent b7ca4b5 commit 9f02fe3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DataFrame/Functions.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ recodeWithDefault d mapping =
280280
(Maybe.fromMaybe d . (`lookup` mapping))
281281

282282
firstOrNothing :: (Columnable a) => Expr [a] -> Expr (Maybe a)
283-
firstOrNothing = lift Maybe.listToMaybe
283+
firstOrNothing = UnaryOp "firstOrNothing" Maybe.listToMaybe
284284

285285
lastOrNothing :: (Columnable a) => Expr [a] -> Expr (Maybe a)
286286
lastOrNothing = lift (Maybe.listToMaybe . reverse)

0 commit comments

Comments
 (0)