Jump to content

Function definition: Difference between revisions

m
→‎Icon and Unicon: header simplification
(Added Modula-2)
m (→‎Icon and Unicon: header simplification)
Line 366:
This will return a scalar if given scalars, if given one- or two-dimensional arrays it will return the matrix-product of these arrays. E.g. if given two three-element one-dimensional arrays (i.e. vectors), this will return a 3x3 matrix.
 
== {{header|Icon}} and {{header|Unicon }}==
==={{headerworks with|Unicon}}===
==={{header|Icon}}===
<lang Icon>procedure multiply(a,b)
return a * b
end</lang>
==={{header|Unicon}}===
This Icon solution works in Unicon.
 
=={{header|Inform 7}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.