title: How To Negate A Function?
body: <p>This might be a really dumb question but.. </p>
  
  <p>I have written two quick functions that check if three numbers are in descending or ascending order.</p>
  
  <p>IE 2 3 5 would be true for ascending and false for descending.</p>
  
  <p>1 5 3 would be false for both</p>
  
  <p>I need to make a third function that will work by only calling these first two. I am using GHCi. This third function sees if the numbers are not in any order like the second example above </p>
  
  <p>So it would be like</p>
  
  <pre><code>let newfunction = (not)Ascending &amp;&amp; (not)Descending
  </code></pre>
  
  <p>How do I do this though? The /= doesn't work for me</p>