Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created June 13, 2017 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/45c84724beade5460918ad5495a6e8aa to your computer and use it in GitHub Desktop.
Save deque-blog/45c84724beade5460918ad5495a6e8aa to your computer and use it in GitHub Desktop.
john : Customer
john = MkCustomer "John" "NYC" (MkAccount "123" "NYC")
update_billing_address john " LND"
=> MkCustomer "John" "NYC" (MkAccount "123" "LND") : Customer
concat_billing_address john " LND"
=> MkCustomer "John" "NYC" (MkAccount "123" "NYC LND") : Customer
@rybak
Copy link

rybak commented Dec 28, 2017

Seems that the space in the first " LND" is not supposed to be there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment