Are sequences lazy like streams?
They can be lazy like streams
A stream is a sequence
The reverse is not true
A list is also a sequence
The full list is here: https://docs.racket-lang.org/reference/sequences.html#%28tech._sequence%29
I see, Thank you! A sequence is basically any thing you can iterate. The fact that I sometimes see #<sequence> in the REPL sort of fooled me into thinking it was something as lazy as #<stream>. Silly beginner mistakes.
Lists are also streams too. So they are not always lazy.
Or rather (stream? '(a b c)) => #t
I think it may be confusing because there is a stream concrete type and also a stream interface. Similarly for sequence.
kind of an oddity with plot, but when lining up plots that don’t use ticks with plots that use ticks, the plot that uses ticks is slightly shorter than the ones without. is there a workaround for this?
That’s almost certainly because the plot area is the same size and the numbers extend above the top
It is possible that the newly added plot metrics information gives you the information to work around it
I mean, ditto — but I can’t really crop it in a meaningful way if I want to align these programmatically
plot metrics?
is there some way to retain the list of installed packages between Racket installations? like, when I upgrade Racket, I can raco pkg install
everything from the last installation in one fell swoop
See raco pkg migrate