This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Prerequisits: | |
| // - pattern matching (first half of Ch. 4 in LYAHFGG), | |
| // - tail recursion vs non-tail recursion (first half of | |
| // Ch. 1 of SICP). | |
| // 1. Clearly and unambiguously define the problem | |
| // (including the symbol `List'). | |
| sealed abstract class List[A] | |
| case class Empty[A]() extends List[A] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |