Skip to content

Library providing infix Maybe.map & .andThen functions.

License

Notifications You must be signed in to change notification settings

amaksimov/elm-maybe-pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elm-maybe-pipeline

Tired of using Maybe.map all the time? Make your code more understandable and readable with MaybePipeline!

Usage

Insted of Maybe.map f ma use ma ma ?> f.

  list
    |> List.head
    ?> .createdAt
    ?> Date.toTime

Insted of Maybe.andThen ma f use ma ??> f.

  laneId
    |> getLaneById board
    ??> \x -> next x lanes

About

Library providing infix Maybe.map & .andThen functions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages