Skip to content

Instantly share code, notes, and snippets.

//: Playground - noun: a place where people can play
import Cocoa
func f1(x : Int) -> Int? {
return (x == 3) ? 1 : 3
}
func f2(x : Int) -> Int? {
if x < 0 || x > 3 {return nil}