Jump to content

Create a two-dimensional array at runtime: Difference between revisions

m
(→‎{{header|Rust}}: Fixed argument handling)
m (→‎{{header|Haskell}}: Added import)
Line 968:
=={{header|Haskell}}==
 
<lang haskell>import Data.Array
<lang haskell> doit n m = a!(0,0) where a = array ((0,0),(n,m)) [((0,0),42)]</lang>
 
<lang haskell> doit n m = a!(0,0) where a = array ((0,0),(n,m)) [((0,0),42)]</lang>
 
=={{header|HicEst}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.