Skip to content

Commit

Permalink
Fix Clojure's shorthand param syntax in README
Browse files Browse the repository at this point in the history
Clojure doesn't use `#(^1 ^2)`, but `%(%1 %2)`.
  • Loading branch information
vendethiel authored Nov 30, 2023
1 parent 2f7e252 commit 6a2cd7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ For example, `f~(?1, ?0)` would have two parameters but would switch them when c
The **second approach** is with a **lazily** evaluated syntax.
This could be handled with an **extension to Hack pipes**,
with a syntax further inspired by
[Clojure’s `#(^1 ^2)` function literals][Clojure function literals].
[Clojure’s `#(%1 %2)` function literals][Clojure function literals].
It would do so by **combining** the Hack pipe `|>`
with the **arrow function** `=>`
into a **pipe-function** operator `+>`,
Expand Down

0 comments on commit 6a2cd7e

Please sign in to comment.