Skip to content

An exploration of direct and monadic patterns for solving nontrivial problems

License

Notifications You must be signed in to change notification settings

Ichoran/directVSmonad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

directVSmonad

An exploration of direct and monadic patterns for solving nontrivial problems.

What is this about?

There are a variety of strategies for handling control flow tasks in Scala. Unfortunately, many examples are so simplistic that they don't really showcase the challenges and advantages one faces in a realistic, nontrivial scenario.

This repository is a place to explore more hefty challenges for different styles of flow control and abstraction. There's no "a monad is like a burrito" here; we'll assume you have at least a basic familiarity with the styles and simply want to see reasonable solutions to not-straightforward problems.

How is this organized?

Each folder contains a different challenge. Within that folder, there is a single ChallengeWhatever.scala file that contains the challenge as a library, and a set of SolutionSoAndSo.scala files that each contain a different way to solve the problem, which are intended to be run with scala-cli using

scala-cli SolutionSoAndSo.scala ChallengeWhatever.scala

(plus JVM arguments if necessary, since using jvm doesn't always work).

About

An exploration of direct and monadic patterns for solving nontrivial problems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages