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
| package de.johanneswachter.education.scala.listprocessing { | |
| /** | |
| * <p>The <code>ListProcessing</code> object contains a number of methods to demonstrate | |
| * functional list handling with <i>Scala</i>. Each method performs operations | |
| * on <code>List</code>s to fit a specific scenario.<p> | |
| * | |
| * <p>This functions have been implemented as part of the exercises during the <i>FPUS</i> course | |
| * at the <i>University of Applied Sciences Mannheim</i> in the <i>winter semester 2009</i></p> | |
| */ | |
| object ListProcessing { |
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
| package de.johanneswachter.education.scala.lists | |
| // The BaseClass for alle Operations | |
| abstract class Expression { | |
| def evaluate():Int | |
| } | |
| // Define the mathematical operations that are available |