can someone help me understand what's going on in the last line of this code snippet in Swift3?
enum Movement {
case Left
case Right
case Top
case Bottom
}
let aMovement = Movement.Left
// so I get all this so far ... then this:
if case .Left = aMovement { print("move left") }
aMovement is already been defined, so I'm not sure what the single "=" is doing exactly. It seems like it should be an "==" to check a comparison - but that gives an error.