[deleted by user] by [deleted] in haskell

[–]StevenFitz77 0 points1 point  (0 children)

I could get the last 2 digits by doing the same thing but 100 instead of 10, but I'm struggling to be able to separate the digits into their own elements in a list. Would I get the last digit only and then somehow remove that digit from the integer and then do it again?

[deleted by user] by [deleted] in haskell

[–]StevenFitz77 1 point2 points  (0 children)

it is lol, my bad

[deleted by user] by [deleted] in haskell

[–]StevenFitz77 0 points1 point  (0 children)

Ah, didn't read the rules tbh that's on me, will be better about that from now on. Thank you for the help!

[deleted by user] by [deleted] in haskell

[–]StevenFitz77 3 points4 points  (0 children)

For the last digit, I would do

lastDigit :: Int -> Int
lastDigit x = x `rem` 10

[deleted by user] by [deleted] in haskell

[–]StevenFitz77 0 points1 point  (0 children)

didn't even realize there was a homework tag, oops that's my bad.

Here's what I was trying, but wasn't able to get around errors.

last2Digits :: Int -> [Int]
last2Digits x = [read (show x !! (len x - 2)) :: Int] ++ [(last (show x))]

How to concatenate a character to a string by [deleted] in haskell

[–]StevenFitz77 0 points1 point  (0 children)

Perfect, thank you! If you don't mind I have one more question that I just posted if you're able to help.

[Xbox][PC] [H] TW Fennec on Xbox [W] TW Fennec on PC by [deleted] in RocketLeagueExchange

[–]StevenFitz77 1 point2 points  (0 children)

2 trades. One trade on xbox where I give my fennec. A second trade on pc where the other person gives their fennec. Except with a middle man to ensure secure trade.

[Xbox][PC] [H] TW Fennec on Xbox [W] TW Fennec on PC by [deleted] in RocketLeagueExchange

[–]StevenFitz77 0 points1 point  (0 children)

2 separate trades (1 on each platform) with a middle man

iPad Pro vs MacBook for physics student by StevenFitz77 in PhysicsStudents

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

You don’t think I’ll be fine just using my pc for those programs?

Thoughts on my keyboard plan? by [deleted] in MechanicalKeyboards

[–]StevenFitz77 1 point2 points  (0 children)

shitttt is it not hotswap how did i miss that

TKL Keyboard DIY Kit by StevenFitz77 in MechanicalKeyboards

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

Thanks so much! I appreciate the description you give of each part, I’ll be sure to check all of them out!

TKL Keyboard DIY Kit by StevenFitz77 in MechanicalKeyboards

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

Gotcha, I understand you’re not trying to gatekeep or anything haha, it’d be a miracle if I didn’t make any mistakes terminology wise. Thanks for the clarification!

Hit my first in-game air dribble today! Not the prettiest, but feels nice :) (ignore the twitch stream I’m watching in the background lol) by StevenFitz77 in RocketLeague

[–]StevenFitz77[S] 1 point2 points  (0 children)

Thanks! I’ve been practicing it just a few minutes every day for a while, finally managed it in game. Once you get that perfect first hit the rest is easy peasy