mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-06 14:52:03 +01:00
Updated wikipage ET: Agents. (Signed-off-by:jocelyn).
git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@2252 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
[[Property:modification_date|Wed, 01 Jul 2020 08:52:09 GMT]]
|
||||
[[Property:publication_date|Wed, 01 Jul 2020 08:52:09 GMT]]
|
||||
[[Property:title|ET: Agents]]
|
||||
[[Property:weight|-3]]
|
||||
[[Property:uuid|ba49a80d-5ddf-8b30-4943-528974fd0ddd]]
|
||||
@@ -131,7 +133,7 @@ The freedom to start from a routine with an arbitrary number of arguments, and c
|
||||
|
||||
As another example of the mechanism's versatility, we saw above an integral function that could integrate a function of one variable over an interval, as in
|
||||
<code>
|
||||
your_integrator.integral (agent your_function (0, 1))
|
||||
your_integrator.integral (agent your_function, 0, 1)
|
||||
</code>
|
||||
|
||||
Now assume that <code>function3</code> takes three arguments. To integrate <code>function3</code> with two arguments fixed, you don't need a new <code>integral</code> function; just use the same <code>integral</code> as before, judiciously selecting what to close and what to leave open:
|
||||
|
||||
Reference in New Issue
Block a user