willya@lemmyf.uk to Programmer Humor@lemmy.mlEnglish · 11 months agoLeave it alonelemmyf.ukimagemessage-square55fedilinkarrow-up1816arrow-down131
arrow-up1785arrow-down1imageLeave it alonelemmyf.ukwillya@lemmyf.uk to Programmer Humor@lemmy.mlEnglish · 11 months agomessage-square55fedilink
minus-squareKogasa@programming.devlinkfedilinkarrow-up3arrow-down1·edit-211 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 MorningtonlinkfedilinkEnglisharrow-up2·11 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.