@[email protected] to Programmer [email protected]English • 4 months agoLeave it alonelemmyf.ukimagemessage-square56fedilinkarrow-up1804arrow-down130
arrow-up1774arrow-down1imageLeave it alonelemmyf.uk@[email protected] to Programmer [email protected]English • 4 months agomessage-square56fedilink
minus-squareKogasalinkfedilink2•edit-24 months agoSkip. As in, “drop the first 5 elements of this iterable.” dropwhile is “drop each element until the given predicate is satisfied.” It’s really not that obscure, I dunno what the original commenter is on about
minus-squareDoc Avid MorningtonlinkfedilinkEnglish2•4 months agoYeah, I’m not even a python dev, I knew what dropwhile did immediately from the name. Some people just don’t want to learn anything new, ever.
What the hell is a drop
Skip. As in, “drop the first 5 elements of this iterable.” dropwhile is “drop each element until the given predicate is satisfied.” It’s really not that obscure, I dunno what the original commenter is on about
Yeah, I’m not even a python dev, I knew what dropwhile did immediately from the name. Some people just don’t want to learn anything new, ever.