Closed sidkshatriya closed 1 year ago
I was a bit confused by some documentation and would be grateful for a clarification.
https://github.com/tweag/linear-base/blob/9f34bfcbfb765255620bc4fe2d46cc38e743d399/examples/Simple/Pure.hs#L151-L161
I am able to understand I. case (a)(i) but I am not able to understand I. case (a)(ii). Can you give me an example of I. case (a)(ii) which obeys the linearity properties?
I. case (a)(i)
I. case (a)(ii)
Case (ii), in this sentence, is meant to be the recursive case.
For instance:
g :: A %1 -> B h :: B %1 -> Int %1 -> D f x = h (g x) 0
Thank you !
You're welcome :slightly_smiling_face:
I was a bit confused by some documentation and would be grateful for a clarification.
https://github.com/tweag/linear-base/blob/9f34bfcbfb765255620bc4fe2d46cc38e743d399/examples/Simple/Pure.hs#L151-L161
I am able to understand
I. case (a)(i)
but I am not able to understandI. case (a)(ii)
. Can you give me an example ofI. case (a)(ii)
which obeys the linearity properties?