the problem with racket is it's actively making it harder to program in python because stuff i expect to be easy turns out to be complicated

hmm i have a list of lists how do i flatten it
(apply append mylist)
(flatten mylist)

python: uhhhhh
for loop?
[y for y in x for x in mylist] # error
[y for x in mylist for y in x] # aaaaaaaaa guido wtf is this
import itertools
itertools.chain(mylist) # this is the practically equivalent of (apply append) but like, i had to look at the docs

@f0x oh hey js has something that python doesn't really have....interesting

@haskal yeah surprising with the design philosophy of a small standard library, but it's so useful

Sign in to participate in the conversation
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.