Reflection/List properties: Difference between revisions
Content deleted Content added
→{{header|REXX}}: added the REXX language. |
Added Julia language |
||
Line 80:
//[["name", "obj"], ["obj", true], ["doStuff", function()]]
</lang>
=={{header|Julia}}==
{{works with|Julia|0.6}}
<lang julia>for obj in (Int, 1, 1:10, collect(1:10), now())
println("\nObject: $obj\nDescription:")
dump(obj)
end</lang>
{{out}}
<pre>
Object: Int64
Description:
Int64 <: Signed
Object: 1
Description:
Int64 1
Object: 1:10
Description:
UnitRange{Int64}
start: Int64 1
stop: Int64 10
Object: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Description:
Array{Int64}((10,)) [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Object: 2017-10-04T18:03:33.691
Description:
DateTime
instant: Base.Dates.UTInstant{Base.Dates.Millisecond}
periods: Base.Dates.Millisecond
value: Int64 63642823413691</pre>
=={{header|Kotlin}}==
|