Skip to content

Instantly share code, notes, and snippets.

@ryuheechul
Last active October 27, 2018 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryuheechul/017c37cabeb4de786b9213b3081f4c7d to your computer and use it in GitHub Desktop.
Save ryuheechul/017c37cabeb4de786b9213b3081f4c7d to your computer and use it in GitHub Desktop.
the case new fast pipe syntax `->` doesn't work after `|>`
/* this works */
"1=2=3"
|> Js.String.split("=")
|. Js.log;
/* this works, too */
"1=2=3"
-> Js.log;
/* but the code below doesn't */
/* you can test this with uncommenting
"1=2=3"
|> Js.String.split("=")
-> Js.log;
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment