fpinscala

所属分类:hotest
开发工具:Scala
文件大小:0KB
下载次数:0
上传日期:2023-06-06 22:36:32
上 传 者sh-1993
说明:  “Scala中的函数编程”一书的代码、练习、答案和提示,
(Code, exercises, answers, and hints to go along with the book "Functional Programming in Scala ",)

文件列表:
fpinscala-first-edition/ (0, 2023-06-06)
fpinscala-first-edition/LICENSE (1071, 2023-06-06)
fpinscala-first-edition/answerkey/ (0, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/ (0, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/01.answer.scala (224, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/01.hint.txt (1, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/02.answer.scala (1024, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/02.hint.txt (87, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/03.answer.scala (593, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/03.hint.txt (93, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/04.answer.scala (226, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/04.hint.txt (53, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/05.answer.scala (299, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/05.hint.txt (47, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/06.answer.scala (528, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/06.hint.txt (115, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/07.answer.scala (1489, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/07.hint.txt (189, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/08.answer.scala (343, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/08.hint.txt (17, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/09.answer.scala (315, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/09.hint.txt (141, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/10.answer.scala (186, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/10.hint.txt (234, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/11.answer.scala (473, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/11.hint.txt (1, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/12.answer.scala (169, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/12.hint.txt (75, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/13.answer.scala (706, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/13.hint.txt (86, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/14.answer.scala (1162, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/14.hint.txt (117, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/15.answer.scala (863, 2023-06-06)
fpinscala-first-edition/answerkey/applicative/15.hint.txt (1, 2023-06-06)
... ...

[![Join the chat at https://gitter.im/fpinscala/fpinscala](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/fpinscala/fpinscala?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) This repository contains exercises, hints, and answers for the book [Functional Programming in Scala](http://manning.com/bjarnason/). Along with the book itself, it's the closest you'll get to having your own private functional programming tutor without actually having one. There are two main branches in this repository: - [first-edition](https://github.com/fpinscala/fpinscala/tree/first-edition) - [second-edition](https://github.com/fpinscala/fpinscala/tree/second-edition) Be sure to select the branch which matches the edition of the book you are reading! Here's how to use this repository: Each chapter in the book develops a fully working library of functions and data types, built up through a series of exercises and example code given in the book text. The shell of this working library and exercise stubs live in `exercises/src/main/scala/fpinscala/`, where `` is a package name that corresponds to the chapter title (see below). When you begin working on a chapter, we recommend you open the exercise file(s) for that chapter, and when you encounter exercises, implement them in the exercises file and make sure they work. If you get stuck on an exercise, let's say exercise 4 in the chapter, you can find hints in `answerkey//04.hint.txt` (if no hints are available for a problem, the file will just have a single '-' as its contents) and the answer along with an explanation of the answer and any variations in `answerkey//04.answer.scala` or `04.answer.markdown`. The finished Scala modules, with all answers for each chapter live in `answers/src/main/scala/fpinscala/`. Please feel free to submit pull requests for alternate answers, improved hints, and so on, so we can make this repo the very best resource for people working through the book. Chapter descriptions: * Chapter 2: gettingstarted * Chapter 3: datastructures * Chapter 4: errorhandling * Chapter 5: laziness * Chapter 6: state * Chapter 7: parallelism * Chapter 8: testing * Chapter 9: parsing * Chapter 10: monoids * Chapter 11: monads * Chapter 12: applicative * Chapter 13: iomonad * Chapter 14: localeffects * Chapter 15: streamingio ### Setup build environment First install SBT, a build tool for Scala. By going to its [website](https://www.scala-sbt.org/) and following the installation instructions. ### Interacting with SBT From the root directory of the project (i.e., the directory where this README.md is located). Launch SBT $ sbt You'll get a prompt from which you can issue commands to build and interact with your code. Try the following: > project exercises > compile This switches to the exercises project, where your code lives, and compiles the code. You can also do: > console to get a Scala REPL with access to your exercises, and > run To get a menu of possible main methods to execute. To create project files for the eclipse IDE you can install the [sbteclipse](https://github.com/typesafehub/sbteclipse) [sbt](http://scala-sbt.org) plugin. This makes a new command available in [sbt](http://scala-sbt.org): > eclipse All code in this repository is [MIT-licensed](http://opensource.org/licenses/mit-license.php). See the LICENSE file for details. Have fun, and good luck! Also be sure to check out [the community wiki](https://github.com/fpinscala/fpinscala/wiki) for the **chapter notes**, links to more reading, and more. _Paul and Rúnar_

近期下载者

相关文件


收藏者