anything
2021-4-10 13:00:42

Are sequences lazy like streams?


sorawee
2021-4-10 13:03:47

They can be lazy like streams


sorawee
2021-4-10 13:03:56

A stream is a sequence


sorawee
2021-4-10 13:04:02

The reverse is not true


sorawee
2021-4-10 13:04:07

A list is also a sequence


soegaard2
2021-4-10 13:05:08

anything
2021-4-10 14:17:02

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.


samdphillips
2021-4-10 18:53:51

Lists are also streams too. So they are not always lazy.


samdphillips
2021-4-10 18:54:59

Or rather (stream? '(a b c)) =&gt; #t


samdphillips
2021-4-10 18:56:17

I think it may be confusing because there is a stream concrete type and also a stream interface. Similarly for sequence.


hazel
2021-4-11 01:31:56

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?


samth
2021-4-11 02:05:15

That’s almost certainly because the plot area is the same size and the numbers extend above the top


samth
2021-4-11 02:05:56

It is possible that the newly added plot metrics information gives you the information to work around it


hazel
2021-4-11 02:06:26

I mean, ditto — but I can’t really crop it in a meaningful way if I want to align these programmatically


hazel
2021-4-11 02:06:39

plot metrics?



hazel
2021-4-11 04:08:17

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


sorawee
2021-4-11 04:09:11

See raco pkg migrate