on master help sign in
The old code doesn't work
2cfbee4Chao-Hong Chen
docs/tutorial/typesfuns.rst+1−1
@@ -1045,7 +1045,7 @@ using natural numbers, the new value can be incremented using the
1045.. code-block:: idris
1045.. code-block:: idris
1046
1046
1047 addStudent : Person -> SizedClass n -> SizedClass (S n)
1047 addStudent : Person -> SizedClass n -> SizedClass (S n)
1048− addStudent p c = record { students = p :: students c } c
1048+ addStudent p c = SizedClassInfo (p :: students c) (className c)
1049
1049
1050.. _sect-more-expr:
1050.. _sect-more-expr:
1051
1051