586329 (1) [Avatar] Offline
#1
Multiline pipelines don't work in the shell. ...


They work if you put the operator at the end of the line. Its not the nicest style but they work smilie

-5 |>
abs() |>
Integer.to_string()
...
sjuric (105) [Avatar] Offline
#2
Yes, that note is deliberately oversimplified, because chapter 2 already introduces a lot of theory, and I didn't want to dive deeper into fine nuances. The technique you mentioned is in fact used later in the book, and it's first shown and explained near the start of section 3.4.5 where there is a note titled "Pipeline operator in the shell".