#Making a basic interactive program (error: type 'state' is not defined)
1 messages · Page 1 of 1 (latest)
I have questions... why Some None? Whats the definition of type state. Second, you missed the first | in the match expression
Thank you, your questions actually made me realise a lot of things. My teacher said that the first | in the match with isnt needed.
it works now, but i'm not sure if my solution is optimal
are you updating state at all?
no, it's not meant to yet, but state is used later in my next exercise