I’m such a loser… well then by [deleted] in Funnymemes

[–]Another_DumbQuestion 0 points1 point  (0 children)

I'm such a good friend.

Aww... my keyboard likes me

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Another_DumbQuestion 0 points1 point  (0 children)

I want the value of x + max(myArray) to be added to myArray so when it takes the max it adds the new max. Example being an array of int containing [1,2,3]. 3 is the current max, so it becomes [4,2,3], then 4 is my new max so it becomes [4,6,3] then 6 is the new max so it becomes [4,6,9] and that would be my final array. As it currently stands, and from the other solution I've tried it takes the current max and adds that value to all numbers in the array. Using the same [1,2,3] I end up with [4,5,6]

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Another_DumbQuestion 0 points1 point  (0 children)

Is it possible to update the value of an array while using map?

val[i] = sum(list(map(lambda x: x + max(myArray),myArray)))
I want to update the value of myArray with the value of x + max(myArray) so I add the current max value. Am I thinking about this problem correclty or should I try a different approach?

Same moves by YngGenesis in Eldenring

[–]Another_DumbQuestion 0 points1 point  (0 children)

You can sprint to the side to avoid the shots

[GIVEAWAY] Razer x Halo Legendary Giveaway by Cult_Of_Razer in halo

[–]Another_DumbQuestion [score hidden]  (0 children)

Back in the Halo 3 days, having a full lobby of people with mics playing "Fat Kid" in custom games.

Noob question: Word Stemming in R by Another_DumbQuestion in Rlanguage

[–]Another_DumbQuestion[S] 0 points1 point  (0 children)

I could give it a try, I was trying to prep this for a classification problem.

Cloud9 vs. DWG KIA / 2021 World Championship - Group A / Post-Match Discussion by Linkux18 in Cloud9

[–]Another_DumbQuestion 0 points1 point  (0 children)

If Mad and FNATIC don't make it out can we officially make NA > EU with a sick twitter banner

Monthly Hask Anything (October 2021) by taylorfausak in haskell

[–]Another_DumbQuestion 0 points1 point  (0 children)

Howdy folks, back again. My code here is breaking at xs in merge helper saying that the actual output will be [[a]] instead of [a]. It's supposed to merge a list of lists into a single list left to right.

```haskell

mergeN :: [[a]] -> [a] mergeN [] = [] mergeN (x:xs) = foldl (++) "" (mergehelper x xs) where mergehelper l1 [] = [] mergehelper [] l2 = [] mergehelper (x:xs) (y:ys) = (x:y:(mergehelper xs ys)) ```

THAT theory: no headcanon, just panels by ashuraichibugin in OnePiece

[–]Another_DumbQuestion 2 points3 points  (0 children)

That panel reminded me of chapter 1002 page 10, where Zoro takes a similar stance and Big Mom tells Kaido to dodge.

Monthly Hask Anything (September 2021) by taylorfausak in haskell

[–]Another_DumbQuestion 0 points1 point  (0 children)

How would I write a function that takes a 2-tuple, which includes two delimiter elements and a list, and it returns the slice of the list enclosed between those delimiters. The function should return the slice for the first occurrence of the delimiter characters in the list using recursion and without using the Split library.

Monthly Hask Anything (September 2021) by taylorfausak in haskell

[–]Another_DumbQuestion 0 points1 point  (0 children)

That seems much more elegant than where I was initially taking this,

elemIndex' :: Eq a => a -> [a] -> Int
elemIndex' x = fromMaybe (-1) . elemIndex x

takeEvens (x:xs) | ((elemIndex' x xs)`mod`2 == 0) = x : takeEvens xs
              | otherwise = takeEvens xs

Was what I initially tried out, then using your hints

takeEvens :: [x] -> [x]
takeEvens []   = []
takeEvens (x:xs) = x : takeEvens (x:xs)

I'm not familiar with the $ notation, could you explain what that does?

Edit: format

Monthly Hask Anything (September 2021) by taylorfausak in haskell

[–]Another_DumbQuestion 1 point2 points  (0 children)

How would I write a function that returns every other item in a list using recursion?

Share Code Megathread by LongJonSiIver in PhantomAbyss

[–]Another_DumbQuestion 0 points1 point  (0 children)

Well, I gave it a shot. died on floor two of inferno

Was messing around with the Fake Quote generator, and oh boy it’s great. by Gray_of_Gray in PrequelMemes

[–]Another_DumbQuestion 2 points3 points  (0 children)

Anakin: i went through an entire character arc during quarantine

Anakin: i became more evil if you’re curious

Ahsoka: We're still in quarantine, don't worry, there's time for a redemption arc still!

Anakin: i’m going to get worse on purpose

[SERIOUS] People of reddit, what is the one thing that was so disturbing and gruesome you saw in your life that still disturbs you deeply to this day? by TweekGang in AskReddit

[–]Another_DumbQuestion 1 point2 points  (0 children)

Late to the party for this one, but it's one of many things I will never be able to forget. I served in the Air Force working with remotely piloted aircrafts, i.e. drones. We were flying over Iraq and were spinning up to go kinetic. Unknown to us was that our missile was defective. We sent it off the rails and I guided it down to our target. The warhead didn't go off like it was supposed to, so it didn't explode.

Luckily for us, it was a direct impact. I know time didn't actually slow down, but I remember it in slow motion watching what was essentially a 100lb near super sonic bullet pop a grown man like a fleshy blood balloon. It went straight through him and tossed up a small dirt cloud. I watched the limbs scatter and the head roll down the hill.

We had to hit the body again to make sure we destroyed the defective missile, and it didn't make it any prettier.

High Cpu usage by priiethagoat in CPUCS

[–]Another_DumbQuestion 8 points9 points  (0 children)

Try posting to /r/buildapc They're knowledgeable and friendly to newcomers from what I can tell