12.07.2015 Views

CSCE 314 Programming Languages - TAMU Computer Science ...

CSCE 314 Programming Languages - TAMU Computer Science ...

CSCE 314 Programming Languages - TAMU Computer Science ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Pattern Matching• Many functions are defined using patternmatching on their arguments.not :: Bool -> Boolnot False = Truenot True = Falsenot maps Falseto True, andTrue to False.• Pattern can be a constant value, or include oneor more variables.6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!