alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
alxs has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
alxs has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
haarts has joined #ponylang
<haarts>
Silly question; I just started out with Pony. I have a double Array which I just want to dump on stdout. I noticed that env.out.print(...) really wants a String and Debug.out(...) similar. What's the canonical way?
<vaninwagen>
An array of float64?
<haarts>
Well, the cells contain a class instance of my own.
<haarts>
let dimensions: Array[Array[Cell]]
<vaninwagen>
Aaah
<haarts>
to be precise
<vaninwagen>
Quick way would be a function with a nested for loop and print each element
<vaninwagen>
With env.out.write
<haarts>
kinda `for row in dimensions.values() do ... end`
<haarts>
right?
<vaninwagen>
Yep
<vaninwagen>
nothing fancy
<vaninwagen>
Good craft, nothing against an artisan for-loop
<haarts>
:)
<haarts>
alright; good to know I didnt miss anything. Thanks!
<vaninwagen>
If you wanna show off, use itertools.Iter
<vaninwagen>
But better wear some sunglasses
<Amun_Ra>
another newbie question, is there a way for accessing an array without ? if the size and index is known?
<vaninwagen>
Sad story that is
<vaninwagen>
No is the answer
<Amun_Ra>
I see, thank you
<vaninwagen>
That is some information that the compiler would need and doesnt have #damnruntime
<vaninwagen>
Dependent types would help here
alxs has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
Maarek has joined #ponylang
<Maarek>
What would be an lldb command to inspect a Map?