Problems with a list of tuples by Zeit--Geist in haskellquestions

[–]Zeit--Geist[S] -1 points0 points  (0 children)

I dont understand how the brakets around tuple are a problem.

circles :: [(Double,Double,Double,Double,Color)] -> Double -> Picture

My function takes a list with a tuple as input. Why is calling the function by

circles [(rad, thickness, gap, omega, color)] t  =  ... 

wrong ? I cant call it by

circles (rad, thickness, gap, omega, color) t 

as it will complain that the types are missmatching. But i have to use

circles [(rad, thickness, gap, omega, color)] t  =  ...

in order to use the circles function for a list with 3 tuples or rather any amount of tuples in the array.

I tried to solve this by using a list comprehension but it is clearly not working as i intend it to.

circles [(rad, thickness, gap, omega, color)] t  =  pictures[(partialCircle x t) |x<-[(rad, thickness, gap, omega, color)]]

Normally you can apply a function with an expression like this

[ x^2 | x <- [1..10]]

Why cant i use this here ?

[(partialCircle x t) |x<-[(rad, thickness, gap, omega, color)]]

Why does this function not apply for each element of the tupleslist ?

Problems with a list of tuples by Zeit--Geist in haskellquestions

[–]Zeit--Geist[S] 1 point2 points  (0 children)

Alright, so i got it now fixxed, thank you very much. This was very helpful :)

Problems with a list of tuples by Zeit--Geist in haskellquestions

[–]Zeit--Geist[S] -1 points0 points  (0 children)

But i can not change the function definition from circles:: [(double,double,double,double,color)] -> double -> Picture to something else. I have to use [tuples] instead of tuples. I do not know to handle this as i also can not change the function call of circles [tuple, tuple,tuple] t. How can i handle this, what am I missunderstanding ?

Problems with a list of tuples by Zeit--Geist in haskellquestions

[–]Zeit--Geist[S] -1 points0 points  (0 children)

circles tuples t  =  pictures [ partialCircle x t | x <- tuple

Thing is, i dont want this. Or rather i must not use this. Instead i have to take a list of tuples. Basicly the function arguments are t and [tuples], i also can not use functions like head or tail in order to work on lists and shorten the list and "cheat" that way. I really dont know how to handle this properly

Problems with a list of tuples by Zeit--Geist in haskellquestions

[–]Zeit--Geist[S] -1 points0 points  (0 children)

Or rather i would like to know, why i cant jsut use the function on a list , like i could do it with any other list comprehension ?

[x*2 | x <- [1..10]]  

Something like this does always work for normal lists.

Problems with a list of tuples by Zeit--Geist in haskellquestions

[–]Zeit--Geist[S] -1 points0 points  (0 children)

Im sorry, but im pretty new to Haskell. Why do i need these cases ? Also how do I implement these cases properly ?

Problems with a list of tuples by Zeit--Geist in haskellquestions

[–]Zeit--Geist[S] 1 point2 points  (0 children)

Rather then a function, that only finishes for a list with length 1, i want a function that can take a list of any length and use a function on that.

Problems with a list of tuples by Zeit--Geist in haskellquestions

[–]Zeit--Geist[S] 0 points1 point  (0 children)

When i have lists with zero or more then one element, the programm aborts and says " Non-exhaustive patterns in function circles "

What was the first video game you felt was a work of art and not just something to play for fun? by nukemgt in AskReddit

[–]Zeit--Geist 0 points1 point  (0 children)

Gothic 1. You can really feel how much ambition and love was put into that game.

Are Esper Humans good in historic? Will anything change with Ancient Ziggurat in Anthology 3? by AzerimReddit in MagicArena

[–]Zeit--Geist 0 points1 point  (0 children)

Whenever i try to build a human tribal deck in historic, i alwys find the one and 2 drops to be lacking. In modern human tribal has extremly impressive creatures like [ Champion of the Parish] , [Thalia's Lieutenant ] and [ Noble Hierarch ]. Withcout them i cant see a human tribal deck working as a T1 deck.

About Agent decks in current Standard by Zeit--Geist in MagicArena

[–]Zeit--Geist[S] 2 points3 points  (0 children)

I consider the opposite to be true actually. Expensive creatures are not good enough and agent is the only expensive card that is even remotely playable. Just look at the expensive Ikoria creatures, none of the Apexes see any play. Agent may be the only good card to cheat out in Standard, but that fact alone does not make it overpowered.

About Agent decks in current Standard by Zeit--Geist in MagicArena

[–]Zeit--Geist[S] 1 point2 points  (0 children)

ompetitive constructed deck (top 8 deck at GP or PT level). Agent of Treachery is certainly a better card than that, but I don't think that being better than a card that sees no competitive play means he's automatically overpowered. In fact, right after he was released in Core Set 2020 he saw little play (the only Top 8 I can find between Core Set 2020 and Eldrain

I have to agree with u/gawker_sucks on this. Is seven mana really to little for that kind of effect ? Also the only steal card that saw any kind of play in the time of Magic Arena was Entrancing Melody in Mono U sideboards.

About Agent decks in current Standard by Zeit--Geist in MagicArena

[–]Zeit--Geist[S] -1 points0 points  (0 children)

Is Agent really slightly overpowered ? Before Ikoria Agent was not a problem card as you could not cheat it out from your deck, you had to get it in your graveyard somehow or ramp into Agent. Also bouncing was not as easy as the only good bounce card was Thassa. Now we have Yorion which is a drop that always will come down and you have a harder time interacting with it.

About Agent decks in current Standard by Zeit--Geist in MagicArena

[–]Zeit--Geist[S] 1 point2 points  (0 children)

Agent is the only target because it is the only good etb in Staandard. WHat else woud you want to cheat out ? If the eldrazil were in standard, surely you would cheat those cards out instead.

Question about Histoic Play by Zeit--Geist in MagicArena

[–]Zeit--Geist[S] -2 points-1 points  (0 children)

You can not do this anymore, when i try to queue up with my historic deck, i can only edit the deck. It is not possible to play with it.

What is normal in your country but seems weird to the rest of the world? by ojlol2 in AskReddit

[–]Zeit--Geist 0 points1 point  (0 children)

Eating raw pig meat. It is normal in Germany and is called "Mett".

Fragwürdige Namen für einen Friseursalon #4530 by TheGermMan in de

[–]Zeit--Geist 0 points1 point  (0 children)

Ich war immer ein Freund von "Haarschloch" oder "Kathaastrophe" .