Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page 27: Sample code has subtract function, but text talks about difference function #135

Open
mlecoz opened this issue Aug 18, 2019 · 1 comment

Comments

@mlecoz
Copy link

mlecoz commented Aug 18, 2019

No description provided.

@andybezaire
Copy link

This seems to be on page 22 of Functional Swift 2020-03-26.pdf

excerpt below:
Instead of the free functions operating on our original Region type, we could then define similar methods as extensions to this struct. And instead of assembling complex regions by passing them to functions, we could then repeatedly transform a region by calling these methods:
rangeRegion.shift(ownPosition).difference(friendlyRegion)

in the last line .difference should be .subtract

great book btw. 🙏🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants