Skip to content

Commit b75515f

Browse files
authored
Ch4 - Note infix REPL incompatibility (purescript-contrib#271)
1 parent bd8a291 commit b75515f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/chapter4.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ For example, suppose we wanted to compute an array of all numbers between 1 and
190190
1. (Easy) Write a function `squared` which calculates the squares of an array of numbers. _Hint_: Use the `map` or `<$>` function.
191191
1. (Easy) Write a function `keepNonNegative` which removes the negative numbers from an array of numbers. _Hint_: Use the `filter` function.
192192
1. (Medium)
193-
* Define an infix synonym `<$?>` for `filter`.
193+
* Define an infix synonym `<$?>` for `filter`. _Note_: Infix synonyms may not be defined in the REPL, but you can define it in a file.
194194
* Write a `keepNonNegativeRewrite` function, which is the same as `keepNonNegative`, but replaces `filter` with your new infix operator `<$?>`.
195-
* Experiment with the precedence level and associativity of your operator in PSCi. NOTE: no unit tests for this.
195+
* Experiment with the precedence level and associativity of your operator in PSCi. _Note_: There are no unit tests for this step.
196196

197197
## Flattening Arrays
198198

0 commit comments

Comments
 (0)