Created
January 22, 2018 11:19
-
-
Save hopewise/b37df5c8a884babf9f9e5760cdedaa11 to your computer and use it in GitHub Desktop.
Piping (|>) to second argument in Elixir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
insert_result = result | |
|> FieldsFitter.fit_driver_fields | |
|> (&Schools.Driver.changeset(%Schools.Driver{}, &1)).() | |
|> repo.insert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment