Compound data type: Difference between revisions

Content added Content deleted
Line 314: Line 314:


===Using a dictionary===
===Using a dictionary===
<lang arturo>point #{
<lang arturo>point: #[
x 10
x: 10
y 20
y: 20
]
}


print point</lang>
print point</lang>
Line 323: Line 323:
{{out}}
{{out}}


<pre>#{ x 10, y 20 }</pre>
<pre>[x:10 y:20]</pre>


===Using a class===
===Using a class===