mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 15:22:31 +01:00
Update wikipage Code Templates. (Signed-off-by:javier).
git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1628 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -41,7 +41,10 @@ These templates does not have the feature `target'.
|
||||
<span id="templates_skeleton"></span>
|
||||
==Templates Skeleton==
|
||||
|
||||
===With Generic Constraints===
|
||||
====Context temples====
|
||||
The next example shows how to define a template that will be applicable to types that conforms <code>ARRAY [COMPARABLE]</code>.
|
||||
|
||||
|
||||
|
||||
<code>
|
||||
note
|
||||
@@ -70,8 +73,8 @@ feature -- Templates
|
||||
end
|
||||
|
||||
slice_maximum (low, high: INTEGER): T
|
||||
-- Get the maximum of an array,
|
||||
-- where the interval is defined by default
|
||||
-- Get the maximum of an array,
|
||||
-- where the interval is defined by default
|
||||
-- by array.lower |..| array.upper.
|
||||
note
|
||||
tags: "Algorithm, Maximum, ARRAY"
|
||||
|
||||
Reference in New Issue
Block a user