ChrisYammine

ChrisYammine

No it’s a matter of behaviour – what you’re doing in that code example is popping off the top of a stack

Edit: nevermind, didn’t notice you were concatenating lists in your reduce function body.

1
Post #11
cmo

cmo

One should practice good habits at all times.

I don’t think saving a few seconds or minutes is a valid reason to use the wrong data structure. It harms performance, clarity and professional growth.

1
Post #12
stevensonmt

stevensonmt

FTR, I wasn’t trying to argue FOR my example over using :queue just stating why from a naive perspective it does seem puzzling.

0
Post #13
— All posts loaded —