diff options
author | Eduardo Julian | 2021-09-05 21:03:05 -0400 |
---|---|---|
committer | Eduardo Julian | 2021-09-05 21:03:05 -0400 |
commit | 09e2747bf8c6dcdc1d7318f2490f0de37d77b39f (patch) | |
tree | ccee4dd90b0f5f84d813a8f29b3b9a5dc602068b /documentation/book/the_lux_programming_language/appendix_b.md | |
parent | 0f7bfa0d4a4e5a79fffe72adec1dd35992c7dde3 (diff) |
Added a chapter on cross-platform Lux.
Diffstat (limited to 'documentation/book/the_lux_programming_language/appendix_b.md')
-rw-r--r-- | documentation/book/the_lux_programming_language/appendix_b.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/documentation/book/the_lux_programming_language/appendix_b.md b/documentation/book/the_lux_programming_language/appendix_b.md index 3aaaa7a23..8ff38eb68 100644 --- a/documentation/book/the_lux_programming_language/appendix_b.md +++ b/documentation/book/the_lux_programming_language/appendix_b.md @@ -41,13 +41,13 @@ You see; this might look very impractical to those accustomed to the old way, bu Consider this: -``` +```clojure (|> x (/ scale) (pow 3.0) (- shift)) ``` If I was using the traditional way of doing math, I wouldn't be able to pipe it, and it would look like this: -``` +```clojure (- (pow (/ x scale) 3.0) shift) @@ -67,7 +67,7 @@ It's called `infix`, and it allows you to do infix math, with nested expressions Here's an example: -``` +```clojure (infix [[3.0 pow 2.0] + [5.0 * 8.0]]) ``` |