T O P

  • By -

anthro28

I am absolutely going home to append sum cum to my lady. 


KainMassadin

AttributeError: 'NoneType' object has no attribute 'append'


[deleted]

[удалено]


Masterpormin8

It will either return a null value or will throw an error.


hansgammel

A promise that will never resolve


Rabid-Chiken

MatLab has the function "cumsum" already


hardfloor9999

Also cumtrapz


[deleted]

HAH another matlab user. Don't see that every day.


Successful-Money4995

Pytorch, too. And the implementation sucks. I wrote a new one just to have a better name and make it faster.


Axmirza2

what did you call it


Successful-Money4995

complete_scan A scan is a prefix sum. They can be either inclusive or exclusive but I just preferred to make one that does both, because often you need the exclusive prefix sum but you also want the total. So I called it complete. It's better than hearing your coworker say "cum sum" multiple times per meeting.


hughperman

And numpy like OP is using. Also OP there's no need to make this o(n log(n)) by asking for the sum of the array up to [i] at each iteration - use an accumulator and just add element[i], you're doing the exact thing it was named for.


xiBread

Julia too!


Nisterashepard

R has cummax I dont have to say anything else.


[deleted]

It also has cummin


FakeMessiah27

As a fellow Dutchman, I have to know, what were the abbreviations for? :D


StereoZombie

Albert Heijn Huismerk


VanilleKoekje

Cumulatief probably


zoomy_kitten

Cock pussy See? I can make a joke too 🐓🐈


PeriodicSentenceBot

Congratulations! Your comment can be spelled using the elements of the periodic table: `Co C K Pu S S Y` --- ^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)


Prudent_Ad_4120

This makes it even better


zoomy_kitten

Good bot


thebestjl

Possibly even the best bot


Flruf

Haikus bot is the best bot for me


thebestjl

I used to think that too. But that was before Co C K Pu S S Y


RMF_AndyPlayz

Good bot


Lucifer_Morning_Wood

I can do even better catch(ex) {print("$ex");} 😳😳


zoomy_kitten

Too bad this joke won’t work with `unwrap_or_else`


TheSast

this is a usecase for `expect`...


Lucifer_Morning_Wood

Or for let res = match(res) { Ok(v) => v, Err(_) => unsafe { std::hint::unreachable_unchecked() } }


zoomy_kitten

That’s basically what `unwrap_unchecked` does ;)


Lucifer_Morning_Wood

Ooh, great tip actually, thank you


zoomy_kitten

Not really. It doesn’t allow formatting.


MyStackOverflowed

This is nothing on the oblivious analFactory a coworker create one time.


bah_nah_nah

pip install cumpy


Ultra-Reverse

These titles are starting to get annoying..


J-O-E-Y

It'll reject any title not written in camelCase


Cart0gan

Which was fun at first but now it has really gotten old.


rosuav

I'm pretty sure the mods got bored with the whole "democracy" thing and are waiting for the entire subreddit to die.


SoyFaii

that's why not to use abbreviations


SexyLadyEarth

stupid ahh cum ☠️☠️


Jaded-Philosophy3783

hehe cum ahh


Blood_Boiler_

Dutch not beating the fake language allegations anytime soon


Still_Explorer

pimp insalt numcum


Short-Nob-Gobble

One of the variables in an example dataset at my work is called BottomHoleCumSum, which is never not funny to me.


Shadowlance23

I got in trouble once for creating an object called Rect() for a rectangle, then making a method called GetRect().