Created
January 15, 2018 09:11
-
-
Save agoiabel/7c996179776779c1b431c154d845c4a4 to your computer and use it in GitHub Desktop.
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
/** associate without labels */ | |
enum Trade { | |
case Buy(String, amount) | |
case Sell(String, Int) | |
} | |
Trade.Buy("Firstbank PLC", 300) | |
Trade.Sell("Firstbank PLC", 700) | |
/** associate with labels */ | |
enum Trade { | |
case Buy(stock: String, amount: Int) | |
case Sell(stock: String, amount: Int) | |
} | |
Trade.Buy(stock: "Firstbank PLC", amount: 300) | |
Trade.Sell(stock: "Firstbank PLC", amount: 700) |
Author
agoiabel
commented
Apr 27, 2020
via email
Hi thanks, you can create a new gist for it.
Then share me the link to update the blog post.
…On Mon, 27 Apr 2020 at 22:10, PSN ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
HI @agoiabel <https://github.com/agoiabel>,
I've forked this example and revised it a bit. How to submit a Pull
request to you so you can review it?
Cheers,
Nayyar
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/7c996179776779c1b431c154d845c4a4#gistcomment-3272309>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC22S6F77V3ZBZYQGJYESXTROXYFVANCNFSM4MSIR67Q>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment