Schal330@lemmy.world to Programmer Humor@programming.dev · 27 days agoIt must be a silent Rlemmy.worldimagemessage-square114fedilinkarrow-up1841arrow-down130
arrow-up1811arrow-down1imageIt must be a silent Rlemmy.worldSchal330@lemmy.world to Programmer Humor@programming.dev · 27 days agomessage-square114fedilink
minus-squarecypherix93@lemmy.worldlinkfedilinkEnglisharrow-up11·27 days ago"strawberry".split('').filter(c => c === 'r').length
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up9·27 days agolen([c if c == ‘r’ for c in “strawberry”])
minus-squareTiefling IRL@lemmy.blahaj.zonelinkfedilinkarrow-up6·27 days ago'strawberry'.match(/r/ig).length
minus-squareanti-idpol action@programming.devlinkfedilinkarrow-up2·27 days ago(\r (frequencies “strawberry”))
minus-squareAwkwardLookMonkeyPuppet@lemmy.worldlinkfedilinkEnglisharrow-up1arrow-down2·27 days agodeleted by creator
minus-squareSluyter548@lemmy.worldlinkfedilinkarrow-up2·27 days agoA zero indexed array doesn’t have a different length ;)
"strawberry".split('').filter(c => c === 'r').length
len([c if c == ‘r’ for c in “strawberry”])
deleted by creator
'strawberry'.match(/r/ig).length
(\r (frequencies “strawberry”))
deleted by creator
A zero indexed array doesn’t have a different length ;)