Skip to content

There are pieces of scala code that explain Scala syntax and features

Notifications You must be signed in to change notification settings

LarryLan/scala-samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scala-samples

Preface

Sometimes we have to read some articles, forums, blogs to understand Scala features. But if we want just remind ourselves something we already knew, then is better just look at code sample. You could easily change it and play with it and see what's going on.

There are samples of Scala code that explains how to use some scala features.

This code is supposed to be isolated as much as possible - like if we wish to explain/remember one feature of Scala then we are not going to use 5 more extra features for that (which might not be gotten yet by a reader of this code).

Each example has no more than 100 lines of code. Also there is tagging is used in order to show to the reader what feature is involved for particular example. Like #feature-1 #feature-3.

"Use the course, Luke!" (R)

HOW TO INSTALL & RUN

sbt & nodejs should be installed

NOTE: as SBT project, the project/Build.scala defines the dependencies and sub-projects. So, to build run a particular project, say ScalaJS:

Start sbt-console:

sbt

Switch to that project:

project ScalaJS

Run:

run

-- Spec: http://www.scala-lang.org/files/archive/spec/2.11/

About

There are pieces of scala code that explain Scala syntax and features

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 99.6%
  • Other 0.4%