aboutsummaryrefslogtreecommitdiff
path: root/documentation/book/the_lux_programming_language/appendix_b.md
diff options
context:
space:
mode:
authorEduardo Julian2021-09-05 21:03:05 -0400
committerEduardo Julian2021-09-05 21:03:05 -0400
commit09e2747bf8c6dcdc1d7318f2490f0de37d77b39f (patch)
treeccee4dd90b0f5f84d813a8f29b3b9a5dc602068b /documentation/book/the_lux_programming_language/appendix_b.md
parent0f7bfa0d4a4e5a79fffe72adec1dd35992c7dde3 (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.md6
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]])
```