3 ms·
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://gi
by melling 7y 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 https://github.com/melling/SwiftCookBook
Trying to be more functional with my Swift:
https://github.com/melling/SwiftCookBook/blob/master/functional.md 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 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.
- odysseus 7y agoDoes the app sync between different macOS computers though? My experience has been: no. Both computers are signed into the same Apple ID ...
- melling 7y agoIt’s using iCloud. Basically, they work in the same directory. Before I had to copy and paste into Xcode Playgrounds.
- odysseus 7y agoThanks. 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.
- jayrhynas 7y agoQuick note about your functional examples - there's already a built-in version of `take` called `prefix` available on all Sequence types.
- melling 7y agoThanks. There’s also a prefix(while:) that appears to be takeWhile(), which I also needed. https://developer.apple.com/documentation/swift/sequence/3128810-prefix https://developer.apple.com/documentation/swift/sequence/312...