Skip to content
Snippets Groups Projects
Commit 535a2117 authored by Daniel Díaz's avatar Daniel Díaz Committed by Marge Bot
Browse files

Clarify the meaning of "exactly once" in LinearTypes

Solves documentaion issue #25084.
parent 135fd1ac
No related branches found
No related tags found
No related merge requests found
...@@ -28,8 +28,9 @@ once*, then its argument is consumed *exactly once*. Intuitively, it ...@@ -28,8 +28,9 @@ once*, then its argument is consumed *exactly once*. Intuitively, it
means that in every branch of the definition of ``f``, its argument means that in every branch of the definition of ``f``, its argument
``x`` must be used exactly once. Which can be done by ``x`` must be used exactly once. Which can be done by
* Returning ``x`` unmodified * Returning ``x`` unmodified.
* Passing ``x`` to a *linear* function * Passing ``x`` to a *linear* function and using the result exactly once
in the same fashion.
* Pattern-matching on ``x`` and using each argument exactly once in the * Pattern-matching on ``x`` and using each argument exactly once in the
same fashion. same fashion.
* Calling it as a function and using the result exactly once in the same * Calling it as a function and using the result exactly once in the same
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment