Skip to content

Nangal/functional-csharp-code

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Functional Programming in C#

This repo contains the code samples, exercises and solutions for the book Functional Programming in C# currently available as part of the Manning Early Access Program.

Functional Programming in C#

The code samples are organized in the following projects:

  • Boc: a long-running example based on a banking scenario
  • Examples: shorter examples, organized by chapter and topic
  • Exercises: placeholders for you to do the exercises, compile and run them; and compare to the provided solutions
  • LaYumba.Functional: a functional library that we develop throughout the book
  • LaYumba.Functional.Tests: also illustrative of topics explained in the book, and useful to better understand the constructs in the library

Note: you are welcome to use LaYumba.Functional, but the main intent of this library is pedagogical. For a more fully-fledged functional library, consider language-ext

Set-up

Running the tests

Command line:

$ cd src/LaYumba.Functional.Tests ## or other project folder
$ dotnet test

In Visual Studio, Test > Run > All Tests

Doing the exercises

  • edit the code in src/Exercises as needed

  • edit src/Exercises/Program.cs to start the class you want

  • run it with:

    $ cd src/Exercises
    $ dotnet run
    
  • run your tests:

    $ cd src/Exercises
    $ dotnet test
    

About

Code samples for Functional Programming in C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 54.5%
  • F# 45.5%