Schal330@lemmy.world to Programmer Humor@programming.dev · 2 years agoIt must be a silent Rlemmy.worldimagemessage-square96linkfedilinkarrow-up1726arrow-down126
arrow-up1700arrow-down1imageIt must be a silent Rlemmy.worldSchal330@lemmy.world to Programmer Humor@programming.dev · 2 years agomessage-square96linkfedilink
minus-squarecypherix93@lemmy.worldlinkfedilinkEnglisharrow-up9·2 years ago"strawberry".split('').filter(c => c === 'r').length
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up7·2 years agolen([c if c == ‘r’ for c in “strawberry”])
minus-squareTiefling IRL@lemmy.blahaj.zonelinkfedilinkarrow-up5·2 years ago'strawberry'.match(/r/ig).length
minus-squareanti-idpol action@programming.devlinkfedilinkarrow-up2·2 years ago(\r (frequencies “strawberry”))
minus-squareAnticorp@lemmy.worldlinkfedilinkEnglisharrow-up1arrow-down2·edit-21 year agodeleted by creator
minus-squareSluyter548@lemmy.worldlinkfedilinkarrow-up2·2 years agoA zero indexed array doesn’t have a different length ;)
"strawberry".split('').filter(c => c === 'r').lengthlen([c if c == ‘r’ for c in “strawberry”])
'strawberry'.match(/r/ig).length(\r (frequencies “strawberry”))
deleted by creator
A zero indexed array doesn’t have a different length ;)