Hacker News new | ask | show | jobs
by melling 2324 days ago
The Mac app "syncs" with the iPad app. That's useful!

I'm writing a Swift Cookbook on Github for anyone who's trying to come up to speed on Swift:

https://github.com/melling/SwiftCookBook

Trying to be more functional with my Swift:

https://github.com/melling/SwiftCookBook/blob/master/functio...

I'm also working through Joel Grus' Data Science from Scratch book, but trying to rewrite the examples in Swift. I'm only a few chapters in:

https://github.com/melling/data-science-from-scratch-swift

Things I'm doing sitting on my couch with my iPad on the arm and the book in my lap.

2 comments

Quick note about your functional examples - there's already a built-in version of `take` called `prefix` available on all Sequence types.
Thanks. There’s also a prefix(while:) that appears to be takeWhile(), which I also needed.

https://developer.apple.com/documentation/swift/sequence/312...

Does the app sync between different macOS computers though? My experience has been: no. Both computers are signed into the same Apple ID ...
It’s using iCloud. Basically, they work in the same directory.

Before I had to copy and paste into Xcode Playgrounds.

Thanks. So, for this to work, I have to enable iCloud Drive on both machines? Looks like it takes quite a long time to upload 375MB playground files to iCloud too.