/Hands-On-Functional-Programming-in-Rust

Hands-On Functional Programming in Rust, published by Packt

Primary LanguageRustMIT LicenseMIT

Hands-On Functional Programming in Rust

This is the code repository for Hands-On Functional Programming in Rust, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

Functional Programming allows developers to divide programs into smaller, reusable components that ease the creation, testing, and maintenance of software as a whole. Combined with the power of Rust, you can develop robust and scalable applications that fulfill modern day software requirements. This book will help you discover all the Rust features that can be used to build software in a functional way.

Instructions and Navigation

All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.

All code files are present in their respective folders.

The code will look like the following:

pub trait MotorController
{
  fn init(&mut self, esp: ElevatorSpecification, est: ElevatorState);
  fn poll(&mut self, est: ElevatorState, dst: u64) -> MotorInput;
}

In order to successfully read through this book and work out all the code samples, we expect readers to fulfill the following

  • We assume familiarity with the concepts from the first 10 chapters of Rust documentation (https:/​/​doc.​rust-​lang.​org/​book/​). Some of the material from these chapters is fairly advanced, so we will also explain that here when relevant. However, the knowledge of syntax and very basic features will be expected.
  • Clone the GitHub code repository and follow along. Tweak the examples and see what effects you can create.
  • Stay curious. Some of the keywords we mentioned could fill an entire book with unique content. Some of these topics presented are so pervasive that they have decent Wikipedia articles to explain and expand on the concepts. However, knowing the keyword is required to even know what to search for.

Related Products

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781788839358