Oddbean new post about | logout

Notes by graywolf | export

 If I want to create two lists from a single map, is there a nice pattern for it?

Let us assume this as an example:

(let* ((sum+prod (map (λ (n)
                        (cons (+ 2 n) (* 2 n)))
                      (iota 10)))
       (sum (map car sum+prod))
       (prod (map cdr sum+prod)))
  #t)

Is there an elegant way to re-write it using just one iteration?

#scheme #guile #lisp 
 I have to admit I am somewhat confused my #mastodon 's model.  If I follow someone, and they boost some post from an instance that is blocked by this instance, I just see nothing.  I would have expected some "post blocked by site admin" message or something instead of the post in the timeline.  Seems like only option to not miss (not see, but know the posts/boosts even exist) is to register on their instance?  Because it seems that following here (I can, their account is accessible), does not fulfill that goal.  Am I missing anything?