{"id":15038543,"url":"https://github.com/packtpublishing/swift-functional-programming","last_synced_at":"2025-04-09T23:41:10.911Z","repository":{"id":69870942,"uuid":"88039534","full_name":"PacktPublishing/Swift-Functional-Programming","owner":"PacktPublishing","description":"Code repository for Swift Functional Programming","archived":false,"fork":false,"pushed_at":"2023-01-30T09:33:40.000Z","size":400,"stargazers_count":32,"open_issues_count":0,"forks_count":14,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T01:35:15.651Z","etag":null,"topics":["fp","functional-programming","functional-reactive-programming","ios","ios-app","ios-swift","object-oriented-programming","oop","protocol-oriented-programming","swift","swift-language","vapor-swift"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PacktPublishing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-12T10:26:11.000Z","updated_at":"2024-12-17T05:14:37.000Z","dependencies_parsed_at":"2023-02-26T01:16:20.425Z","dependency_job_id":null,"html_url":"https://github.com/PacktPublishing/Swift-Functional-Programming","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacktPublishing%2FSwift-Functional-Programming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacktPublishing%2FSwift-Functional-Programming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacktPublishing%2FSwift-Functional-Programming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacktPublishing%2FSwift-Functional-Programming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PacktPublishing","download_url":"https://codeload.github.com/PacktPublishing/Swift-Functional-Programming/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131467,"owners_count":21052819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fp","functional-programming","functional-reactive-programming","ios","ios-app","ios-swift","object-oriented-programming","oop","protocol-oriented-programming","swift","swift-language","vapor-swift"],"created_at":"2024-09-24T20:38:49.565Z","updated_at":"2025-04-09T23:41:10.896Z","avatar_url":"https://github.com/PacktPublishing.png","language":"Swift","readme":"\n\n\n# Swift Functional Programming - Second Edition\nThis is the code repository for [Swift Functional Programming - Second Edition](https://www.packtpub.com/application-development/swift-functional-programming-second-edition?utm_source=github\u0026utm_medium=repository\u0026utm_campaign=9781787284500), published by [Packt](https://www.packtpub.com/?utm_source=github). It contains all the supporting project files necessary to work through the book from start to finish.\n## About the Book\nSwift is a multi-paradigm programming language enabling you to tackle different problems in various ways. Understanding each paradigm and knowing when and how to utilize and combine them can lead to a better code base. Functional programming (FP) is an important paradigm that empowers us with declarative development and makes applications more suitable for testing, as well as performant and elegant. This book aims to simplify the FP paradigms, making them easily understandable and usable, by showing you how to solve many of your day-to-day development problems using Swift FP.\n\nIt starts with the basics of FP, and you will go through all the core concepts of Swift and the building blocks of FP. You will also go through important aspects, such as function composition and currying, custom operator definition, monads, functors, applicative functors, memoization, lenses, algebraic data types, type erasure, functional data structures, functional reactive programming (FRP), and protocol-oriented programming (POP).\n\nYou will then learn to combine those techniques to develop a fully functional iOS application from scratch.\n\n## Instructions and Navigation\nAll of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.\n\nAll chapters contains code files.\n\nThe code will look like the following:\n```\nlet numbers = [9, 29, 19, 79]\n// Imperative example\nvar tripledNumbers: [Int] = []\nfor number in numbers {\n    tripledNumbers.append(number * 3)\n}\nprint(tripledNumbers)\n```\n\nTo follow along with the examples in this book, you'll need to have an Apple computer with macOS 10.10 or higher installed. You'll also need to install Xcode 8.3 or newer with Swift 3.1 or newer.\n\n## Related Products\n* [Swift 3 Object-Oriented Programming - Second Edition](https://www.packtpub.com/application-development/swift-3-object-oriented-programming-second-edition?utm_source=github\u0026utm_medium=repository\u0026utm_campaign=9781787120396)\n\n* [Swift 3 Protocol-Oriented Programming - Second Edition](https://www.packtpub.com/application-development/swift-3-protocol-oriented-programming-second-edition?utm_source=github\u0026utm_medium=repository\u0026utm_campaign=9781787129948)\n\n* [Swift: Developing iOS Applications](https://www.packtpub.com/virtualization-and-cloud/swift-developing-ios-applications?utm_source=github\u0026utm_medium=repository\u0026utm_campaign=9781787120242)\n\n* [Swift iOS Programming for Kids](https://www.packtpub.com/application-development/swift-ios-programming-kids?utm_source=github\u0026utm_medium=repository\u0026utm_campaign=9781787120747)\n\n* [Swift 3 Game Development - Second Edition](https://www.packtpub.com/application-development/swift-3-game-development-second-edition?utm_source=github\u0026utm_medium=repository\u0026utm_campaign=9781787127753)\n\n### Suggestions and Feedback\n[Click here](https://docs.google.com/forms/d/e/1FAIpQLSe5qwunkGf6PUvzPirPDtuy1Du5Rlzew23UBp2S-P3wB-GcwQ/viewform) if you have any feedback or suggestions.\n### Download a free PDF\n\n \u003ci\u003eIf you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.\u003cbr\u003eSimply click on the link to claim your free PDF.\u003c/i\u003e\n\u003cp align=\"center\"\u003e \u003ca href=\"https://packt.link/free-ebook/9781787284500\"\u003ehttps://packt.link/free-ebook/9781787284500 \u003c/a\u003e \u003c/p\u003e","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacktpublishing%2Fswift-functional-programming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpacktpublishing%2Fswift-functional-programming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacktpublishing%2Fswift-functional-programming/lists"}