willya@lemmyf.uk to Programmer Humor@lemmy.mlEnglish · 1 year agoLeave it alonelemmyf.ukimagemessage-square56fedilinkarrow-up1825arrow-down131cross-posted to: [email protected]
arrow-up1794arrow-down1imageLeave it alonelemmyf.ukwillya@lemmyf.uk to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square56fedilinkcross-posted to: [email protected]
minus-squareKogasalinkfedilinkarrow-up4arrow-down1·edit-21 year 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 Mornington@midwest.sociallinkfedilinkEnglisharrow-up2·1 year 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.
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.