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
enum CurlyBracketsType: String { | |
case forwards = "{" | |
case backwards = "}" | |
private var opposite: String { | |
switch self { | |
case .forwards: | |
return CurlyBracketsType.backwards.rawValue |
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 com.fotoespiritu.twcurrency; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.net.URISyntaxException; | |
import java.util.ArrayList; | |
import org.apache.http.HttpEntity; |
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
import Foundation | |
class CalculatorBrain | |
{ | |
private enum Op: Printable | |
{ | |
case Operand(Double) | |
case UnaryOperation(String, Double -> Double) | |
case BinaryOperation(String, (Double, Double) -> Double) |