objcio / functional-swift

Issue repository for the Functional Swift book
http://www.objc.io/books/fpinswift
927 stars 133 forks source link

About The book what name is Functional Swift first chapter #121

Closed yanjinquan closed 5 years ago

yanjinquan commented 8 years ago

I am a beginner with Swift, so I was confused struct in swift.

When I read The chapter about "first-class-value",you say that if replace the "typealias Region = (Position) -> Bool" to "struct Region { let lookup: (Position) -> Bool }" and use extensions the code will work better.I tried it but I cannot complete, but I really want know how to do it. Can you show the code for me, if you had.thanks vary much.

I know my request is a little too much.if you have no time, i will be grateful to you. your books open my eyes.

chriseidhof commented 8 years ago

Hi,

What did you try? What parts didn't work?

dfrobison commented 7 years ago

When are you going to update the book and examples to reflect the changes in Swift 3?