mark.warren
2018-8-30 13:14:40
One of the things I still can;t wrap my head around is if (filter positive? (map sub1 '(1 2 3)))
involves two full list traversals or one lazy one. If it involves two then is there a more efficient way of doing this?
samth
2018-8-30 13:19:35
@mark.warren that does two list traversals
samth
2018-8-30 13:20:35
to do only one, see filter-map
or use (for*/list ([i '(1 2 3)] [v (in-value (sub1 i)] #:when (positive? v)) v)
mark.warren
2018-8-30 13:22:58
@samth Thanks, that was what I thought, I’ll look into those alternatives.
mark.warren
2018-8-30 13:37:46
With big-bang, does the to-draw handler have to complete before the next tick? I am having strange issues with drawing if I go over a certain number of items to draw.
samth
2018-8-30 13:38:39
@mark.warren yes, i believe so
mark.warren
2018-8-30 13:39:16
Ah, I might be better off using a canvas then and handling the refresh myself.
mark.warren
2018-8-30 13:40:15
@samth Thanks again.