Profile cover photo
Profile photo
Andy Calderbank
13 followers -
Functional Developer
Functional Developer

13 followers
About
Posts

Post has attachment
**
If anyone knows why Blogger won't allow a Post title to be set then let me know!!!

Post has attachment
**
Protocols, Delegates and Functions. I've been browsing through the Apple Swift resources and stumbled upon a pretty good example on Document Management (some good cloud usage samples as well). I'm working quite a bit with 'Document' files both on iOS and OS...

Post has attachment
**
I've been browsing through the Apple Swift resources and stumbled upon a pretty good example on Document Management (some good cloud usage samples as well). I'm working quite a bit with 'Document' files both on iOS and OS X and wondered whether the samples ...

Post has attachment
**
I've been browsing through the Apple Swift resources and stumbled upon a pretty good example on Document Management (some good cloud usage samples as well). I'm working quite a bit with 'Document' files both on iOS and OS X and wondered whether the samples ...

Post has attachment
Slight Detour into Custom Sequences
Still trying to work my way around the Swift collection hierarchy with a view to working out mapping functions which work across all collection types (examples so far are Array only) - must say not the easiest thing to get your head around. In doing my inve...

Post has attachment
Pipe and Chains!
In the post written so far I've touched upon implementing the (|>) pipe forward operator and various of the traditional functional (in so far as Swift allows) mapping and folding options but haven't really touched upon why these can be useful in the softwar...

Post has attachment
Playing with fold
Quick bit of code showing how a basic 'fold' can be applied to Swift Arrays.

Post has attachment
Swift Singletons
I've seen some questions flying around about how to write singletons in Swift and I thought I'd have a play to see what I could come up with. On the surface either of the two techniques presented here appear to function as expected but I would need to do so...

Post has attachment
Partioning Arrays
Been taking time to try and decipher the Swift collection hierarchy (with minimal success) and understanding CloudKit (looks promising and will feature in later posts) so not had much time to finish off the async example posted earlier. The issue with the !...

Post has attachment
Hiding GCD - (Or a very rough attempt at doing an Async!)
Just a bit of code today - some thoughts on hiding GCD usage behind an f# like async facade (bit difficult without monads but there you go) When I've fine tuned this I'll give a more detailed commentary. It does compile and run quite happily.
Wait while more posts are being loaded