Skip to content

Some exercises to walk you to through https://underscore.io/books please don't peek `answers` before you finished

Notifications You must be signed in to change notification settings

zainul-franciscus-myob/scala-dojo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Essential Scala Dojo

Most of the examples and exercises are come from underscore’s books

Up and Running

Execute the following command so your sbt can download packages in multi threads

mkdir -p ~/.sbt/1.0/plugins
echo 'addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0")' >> ~/.sbt/1.0/plugins/plugins.sbt

Run sbt

sbt

Then type compile and wait all deps download and everything should compile.

If everything compiled, try typing in test command

Challenges

All the exercises are well documented and defined in files under test folder.

Basically just make the following tests compile and all green…

1-class-and-object.scala
2-1-algebraic-data-type.scala
2-2-recursive-data-type.scala
2-3-variance.scala
2-4-typeclasses.scala
2-5-type-enrichment.scala
3-1-functor.scala
3-2-identity-monad.scala
3-3-reader-writer-monad.scala
3-4-state-monad.scala
3-5-monad-transformer.scala
3-6-semigroupal.scala
3-7-validated.scala
3-8-traverse.scala
4-1-kind.scala
4-2-free.scala

all the tests are actually generated from following literal programming org files

Typeclasses Coverage

https://user-images.githubusercontent.com/1235045/46420398-4b1a9580-c773-11e8-8dd7-bf1c7335f8f7.PNG

More Challenges

About

Some exercises to walk you to through https://underscore.io/books please don't peek `answers` before you finished

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 100.0%