Skip to content

Commit 4466644

Browse files
committed
README: adding links to intro code snippets with comparisons to JS as well as analysis of 'symbol count'
1 parent 5dff0ed commit 4466644

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ defn arithmetic(op) ^(
5555
)
5656
```
5757

58+
----
59+
60+
**Note:** [Here is this snippet alongside its JS equivalent](https://gist.github.com/getify/faedec7c918a09820fef91519a9d1b69), in case it's helpful to compare and to understand the **Foi** code better.
61+
62+
----
63+
5864
It shouldn't take reading thousands of pages of books or watching months of workshop videos to fully grasp the surface area of **Foi**. Hopefully, without too much learning and practice, even more advanced code like this will brighten into clarity:
5965

6066
```java
@@ -76,7 +82,13 @@ defn getFavoriteMovies(userID) ^(IO ~<< {
7682
getFavoriteMovies(123).run(document)
7783
```
7884

79-
**Hint:** The above snippet defines a function using the "do-syntax" against the `IO` monad, where the `::` definitions are monadic chain operations. But if that's just a bowl of word-soup, don't worry for now; you'll *get it* before too long!
85+
Don't worry for now if that example is just a bowl of symbol-soup; you'll *get it* before too long!
86+
87+
----
88+
89+
**Note:** The above snippet defines a function using the "do-syntax" against the `IO` monad, where the `::` definitions are monadic chain operations. [Here is that snippet alongside its JS equivalent](https://gist.github.com/getify/3542996ab54b5be2a648ecfcb6bb6bc8), in case it's helpful to compare and to understand the **Foi** code better.
90+
91+
----
8092

8193
## TL;DR
8294

0 commit comments

Comments
 (0)