Skip to content

Instantly share code, notes, and snippets.

@piyushdec
Last active December 21, 2018 19:02
Show Gist options
  • Select an option

  • Save piyushdec/ab48aebac0067c18b1ef789951fc8d82 to your computer and use it in GitHub Desktop.

Select an option

Save piyushdec/ab48aebac0067c18b1ef789951fc8d82 to your computer and use it in GitHub Desktop.
enum Trade {
case buy(stock: String, amount: Int)
case sell(stock: String, amount: Int)
}
func trade(type: Trade) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment