You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From that, I'd infer that surround a [b, c, d] means either a b c d a, or a b a c a d a, but definitely not b a c a d, where b and d are not "surrounded by as.
The standard library use words like intersperse or intercalate, which imply much better the idea of putting things "in between" other things, rather than all around.
The text was updated successfully, but these errors were encountered:
Surrounding means to put stuff all around.
From that, I'd infer that
surround a [b, c, d]
means eithera b c d a
, ora b a c a d a
, but definitely notb a c a d
, whereb
andd
are not "surrounded bya
s.The standard library use words like
intersperse
orintercalate
, which imply much better the idea of putting things "in between" other things, rather than all around.The text was updated successfully, but these errors were encountered: