Skip to content

Commit bbbf192

Browse files
fixup! jun3/haskell: fix questions and add some new
1 parent 79e1635 commit bbbf192

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/junior-3/haskell.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@
208208
* What is the function `deepseq` (and operator `$!!`)?
209209
* Could using `seq` change the returned value of the function?
210210
* In which way does runtime behavior of the following expressions differ?
211-
* ``(a + b) `seq` ((a + b) : list)``
212-
* ``let s = a + b in s `seq` (s : list)``
211+
* ``a + b `seq` (a + b) : list``
212+
* ``let s = a + b in s `seq` s : list``
213213
* What is the GHC extension `BangPatterns`?
214214
* Make examples when bang pattern is useless.
215215
* What form does the bang pattern force values to be calculated to?

0 commit comments

Comments
 (0)