mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-11-24 04:43:25 +03:00
Update updates.rst
This commit is contained in:
parent
52e6a4f1ed
commit
37af02eb2a
@ -554,7 +554,7 @@ field:
|
|||||||
constructor MkVect
|
constructor MkVect
|
||||||
purpose : String
|
purpose : String
|
||||||
length : Nat
|
length : Nat
|
||||||
content : Vect len a
|
content : Vect length a
|
||||||
|
|
||||||
Then, we can safely update the ``content``, provided we update the ``length``
|
Then, we can safely update the ``content``, provided we update the ``length``
|
||||||
correspondingly:
|
correspondingly:
|
||||||
@ -562,7 +562,7 @@ correspondingly:
|
|||||||
.. code-block:: idris
|
.. code-block:: idris
|
||||||
|
|
||||||
addEntry : String -> WrapVect String -> WrapVect String
|
addEntry : String -> WrapVect String -> WrapVect String
|
||||||
addEntry val = record { len $= S,
|
addEntry val = record { length $= S,
|
||||||
content $= (val :: ) }
|
content $= (val :: ) }
|
||||||
|
|
||||||
Generate definition
|
Generate definition
|
||||||
|
Loading…
Reference in New Issue
Block a user