A library of code snippets written in Scala language
List of folders and files
with examples (click any file to see a description):
-
Collections: How to work with Scala collections
Collections.scala
: This script shows how to create basic types of collections
-
DataTypes: How to declare and use variables of different data types
Arrays.scala
: This script shows how to declare and use array variablesCharAndString.scala
: This script shows how to use the Char and String data typesNumericDataTypes.scala
: This script shows how to declare and use different numeric data typesOtherSimpleDataTypes.scala
: This script shows how to use other simple data types, such asBoolean
,Any
,AnyVal
,AnyRef
andSymbol
Strings.scala
: This script shows how to work with String literals and String variables.Variables.scala
: This script shows how to declare and initialize variables in Scala.
-
Iterators: How to iterate through arrays and collections
ForLoops.scala
: Script that shows different uses of thefor
loopIterateArray.scala
: Simple example on how to iterate the items in an array
-
UseJavaLibraries: How to use some Java Libraries from Scala
UseMULAN.scala
: Example on how to access the MULAN Java Library to work with multilabel datasetsUseMULANMeasures.scala
: This script shows how to use the metrics for multilabel classification assessing on the MULAN library