Skip to content

Commit 79e1635

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/junior-3/haskell.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@
207207
* What is the function `seq` (and operator `$!`)?
208208
* What is the function `deepseq` (and operator `$!!`)?
209209
* Could using `seq` change the returned value of the function?
210-
* What is the expression result: ``(a + b) `seq` ((a + b) : list)``? Why?
210+
* 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)``
211213
* What is the GHC extension `BangPatterns`?
212214
* Make examples when bang pattern is useless.
213215
* What form does the bang pattern force values to be calculated to?

0 commit comments

Comments
 (0)