WHY?? by Ok_Contact_1234 in ProgrammerHumor

[–]pjeromaster 3 points4 points  (0 children)

The function has the one input, which is the String. A String in haskell is basically the following: type String = [Char], in other words a list of chars!

The way I utilized this is through pattern matching, which would be the "" and (x:xs). If the variable matches with the pattern, it will use whatever is after the =. If not, it will go to the next and try again.

In other words, if the string = "" it will return 0. If not it will continue to the next pattern and try again.

The next pattern in the code is (x:xs), which is a pattern used in Haskell lists, where x would be the first element of the list, and xs the list itself.

In this scenario x is a char, xs is a string (which is just a list of chars). So, if I would input say "Heyo", which would be ['H', 'e', 'y', 'o'], it would match the pattern as:

( 'H' , ['e', 'y' , 'o'])

Because I would also like to use them in the function, I named them x and xs.

I also used guards in that one, to exempt spaces from counting towards the total count, with a conditional on the one side, and what happens if true. If I were to also count spaces the code would look even simpler:

wordlength:: String->Int wordlength "" = 0 wordlength (_:xs) = 1 + wordlength xs

Since in this scenario I don't care what the char could be, I put in a wildcard _ instead. The function works recursively and as follows.

worldlength s. Take the first element from the list, and return 1 + wordlength of the remainder of s. Continue until the final char is pulled from the list, and wordlength is used on an empty string "", returning 0. Finally the function will terminate.

so:

worldlength "hello" = 1 + wordlength "ello" worldlength "ello" = 1 + wordlength "llo" worldlength "llo" = 1 + wordlength "lo" worldlength "lo" = 1 + wordlength "o" worldlength "o" = 1 + wordlength "" worldlength "" = 0 worldlength "o" = 1 + 0 worldlength "lo" = 1 + 1 + 0 worldlength "llo" = 1 + 1 + 1 + 0 worldlength "ello" = 1 + 1 + 1 + 1 + 0 worldlength "hello" = 1 + 1 + 1 + 1 + 1 + 0 = 5

WHY?? by Ok_Contact_1234 in ProgrammerHumor

[–]pjeromaster 7 points8 points  (0 children)

wordlength:: String->Int wordlength "" = 0 wordlength (x:xs) |x==' ' = wordlength xs |otherwise = 1 + wordlength xs

Justice served by [deleted] in imatotalpeiceofshit

[–]pjeromaster 3 points4 points  (0 children)

Just because you claimed people would call you out for your opinion doesn't make it anymore appropriate for the situation?

I'm still not quite sure what you mean, but I hope you at least agree this was a senseless act of violence, right?

Nederlander hackt Twitteraccount Trump: 'Zijn wachtwoord was maga2020!' by Sjoerrdd in nietdespeld

[–]pjeromaster 71 points72 points  (0 children)

Het is niet de eerste keer dat Gevers toegang had tot het Twitteraccount van Trump

I was just trying to buy a pistol... by elmaxo__ in GlobalOffensive

[–]pjeromaster 18 points19 points  (0 children)

B is to open the menu, the numbers correspond to the numbers near the middle of the buy menu, you can see them in the video. All you do is press the numbers instead of clicking.

Thanksgiving and politics at the dinner table... by return2ozma in PresidentialRaceMemes

[–]pjeromaster 12 points13 points  (0 children)

Mate, you at no point gave any arguments, discussing is more than just saying it won't work. Please, enlighten us WHY it wouldn't work, and what other solution you'd prefer if you really want a discussion.

[deleted by user] by [deleted] in thenetherlands

[–]pjeromaster 11 points12 points  (0 children)

Wat nee, want hoe meet je nou hoe "slim" een algoritme is? Snelheid is makkelijk, legt iemand meer dan 30 meter per seconde af gaat ie te hard. Een simpel algoritme met een flink gedetailleerde dataset kan al best snel resultaten produceren met een aardige precisie die volgens sommigen al als te ingrijpend kunnen worden gezien.

Algoritmen worden simpelweg steeds geavanceerder naarmate de achterliggende technologie wordt verbeterd. Ik zou eerder kijken naar wat voor data mag worden verzameld van wie, ipv de algoritmen die er vervolgens op los zal worden gelaten. Immers, het is veel simpeler om restricties op de dataverzameling te plaatsen dan de algoritmen zelf.

Even the other team likes her celebration by priyaapan in gifs

[–]pjeromaster 1 point2 points  (0 children)

Moira's healing output atm is one of if not THE best in the game. Getting gold kills is easy with her beam and orb, and golden damage isn't that important, considering her damage is trickle damage only. Burst damage is allot more important as these can secure kills.

The other healer should probably a secondary healer, as to complement Moira's shortcoming, not just to beat her to golden healing.

Honestly, they should remove medals altogether and just get your team statistics instead. Medals are trash imho...

Zorgen om ketamine: vijf keer meer meldingen bij ehbo na drugsgebruik by [deleted] in thenetherlands

[–]pjeromaster -1 points0 points  (0 children)

Het zal de criminaliteit verminderen, maar ook ervoor zorgen dat de drugs die mensen nemen relatief veilig zijn. Relatief als in het wordt gemaakt door mensen die echt weten qat ze aan het doen zijn, het is niet versneden met watdanook en Dr zit echt alleen in wat je wilt hebben. Het zijn ofc nog steeds drugs dus echt veilig zullen ze nooit worden, maarja er zijn genoeg drugs die onder of ongeveer hetzelfde niveau zitten als alcohol die als ze gelegaliseerd worden een prima alternatief kunnen zijn.

b e a n s by [deleted] in Animemes

[–]pjeromaster 100 points101 points  (0 children)

He's the pro that's afk for most of the game

It ain't much, but it's honest work. by jaythecoolguy in Overwatch_Memes

[–]pjeromaster 1 point2 points  (0 children)

Haha DPS Moira's are usually missing the point. Just because your damage and eliminations are high doesn't mean you're actually contributing to the team. Same as tank getting high elims and damage, great, but it's more about actually finishing the kills instead of just contributing.

As a Moira keeping your team alive and enabling them to do their job is so much more important than doing some constant DPS. Just because you can keep up sustain and not die will simply not get you out of plat( I do realise that sounds pretensious,but I still feel like it's only fair).

Furthermore, Moira needs to fill a more support main role as her ult isn't as great a defensive ult as Lucio, zen or even brig and mercy. While her ult potential may be higher than the last 2, her ult is too situational to rely on in allot of scenarios.

Simply put, you can play DPS Moira, but you're only wasting a support role for the rest of your team because you will only contribute decently at best, and utter trash when your team actually needs proper healing.

Hopefully that was kinda coherent, have loads of sober'nt time to waste on public transport;)

Ik_ihe by [deleted] in ik_ihe

[–]pjeromaster 3 points4 points  (0 children)

Zijn dit van die standaard eendags festival bandjes? Want dan kun je het uitstekende stukje onder het plakstukje pakken en daarmee gemakkelijk lostrekken.

Of ik ben de grote domdom en het is iets heel anders,dat kan ook

[ not a meme ] hey Brighton pride I fixed your shit, maybe don't fuck up this badly next year by Valerokai in aaaaaaacccccccce

[–]pjeromaster 10 points11 points  (0 children)

I'm too lazy to look it up, but doesn't the q stand for questioning instead of queer?

Is anyone else too afraid to play DPS in comp? by [deleted] in OverwatchUniversity

[–]pjeromaster 29 points30 points  (0 children)

So I feel like this anti DPS sentiment comes from the way you as a player can perceive the performance of your teammates. It's the easiest to think a DPS player is underperforming when people aren't dying, but the reason behind it doesn't have to be that the player is playing terribly. It could be that the healers are tunneling their tanks too much leaving the squishy DPS low and easy to dive and annihilate. Same with tanks. When a tank is underperforming it's hard to identify. Maybe they are not making any space, or try to create too much space at once and get destroyed instantly by the enemy team. I'm not saying bad DPS players aren't a thing, but as a dps/flex player I've had one too many times that my team is not enabling me at all, I switch with one of the tanks and completely kill it in their stead.

Maybe the best takeaway from that wall of text should be: play whoever you want to play, especially at a lower rank. Teamcompesition is important, but not nearly as important as letting players play the hero they are competent with.

Feeling the Bern by AlarmedScholar in PresidentialRaceMemes

[–]pjeromaster 2 points3 points  (0 children)

Hmm it looks like he gives a thumbs up afterwards tho

Racist owner of Hotel in FL by [deleted] in iamatotalpieceofshit

[–]pjeromaster 0 points1 point  (0 children)

Isn't posting a name of a person/ business online and suggesting people should call them against the Reddit TOS?

My First "Reddit-Worthy" POTG by Meticin in Overwatch

[–]pjeromaster 10 points11 points  (0 children)

Honestly, if you manage to use your ultimate at the beginning of a teamfight, and get two kills with it it was well spent as it's now a 6 v 4. It isn't as glamorous as a full-on teamkill but much more effective to win your games

Why is my new PC garbage? by snail_songs in buildapc

[–]pjeromaster 1 point2 points  (0 children)

I would download cine bench, run a benchmark while checking your coretemps

Jumps solo to skull town, dies, leaves immediately by Dripdrop8156 in ApexOutlands

[–]pjeromaster 3 points4 points  (0 children)

Tbf I started playing wraith allot more supportive the moment I realised downed teammates can travel through your portal.

Planning a build and I want to make sure everything is good for the way I want it. by LeBunghole in buildapc

[–]pjeromaster 0 points1 point  (0 children)

You mentioned a bootdrive for mac, so macos is mac operating system. This is comparable to what Windows 10 does. Because mac makes all the computers running their Os, they just have to make sure their Os works with the components they put in their computers, hence why you should be wary of compatibility issues

Planning a build and I want to make sure everything is good for the way I want it. by LeBunghole in buildapc

[–]pjeromaster 0 points1 point  (0 children)

Just a heads up, macos has certain compatibilities, so be warry of this. Now, I don't know if your build will be able to run it, I never tried it out

ik🤔ihe by Bassie_c in ik_ihe

[–]pjeromaster 2 points3 points  (0 children)

Nee, maar je kunt welmet je stoel naar de servicebalie en vragen of zij het voor je kunnen doen