If i wanted to do the following:
function1 stuff
| condition1 = "yay"
| condition2 = "hey"
| condition3 = "nay"
and i wanted to have a statement that always ran, unconditionally, (e.g. "because"), how could i do this? The strings are placeholders.
Thanks!
Edit:
Before i give up on this, i want to try and rephrase it in terms of the problem at hand.
I have a function which takes two inputs (lists of lists).
If given a sample input of [[]] [[[]], [[]]] (or [[]] [[["x"]], [[]]]) i want to
- test to see if there exists an even amount of [[]]'s on each side and if so delete them all
- test for an odd amount on each side then nub (delete all but one)
- several other similar things
then following this combine the two inputs (cleaned up) and return them. So far i had decided on a guard syntax, after trying case and if-then-else. But that would only allow me to test one side (for example) then after the = sign to join and return. Unless it was inordinately long... So acknowledging that i have a lot to learn yet, how would i go about doing something like this in haskell?