Scala tutorial – a complete guide

234 total views, 1 views today

Scala tutorial

Welcome to Scala tutorial series. On this page, I have listed down most of the Scala tutorial – a complete guide to learn and understand each feature with examples.

Scala tutorial Index

Fundamentals

  1. What is Scala REPL?
  2. How to write the main method?
  3. Scala print println printf function
  4. Scala paste mode
  5. Scala lazy loading concept
  6. Scala String Interpolation

Scala Variables

  1. Scala mutable and immutable variables
  2. Scala var vs val

Scala Operators

  1. Scala arithmetic operations
  2. Scala relational operations

Scala conditional statements

  1. Scala if-else conditional expression
  2. Scala while and do-while loop
  3. Scala Break statement

Scala Class, Case class, Object, and Traits

  1. Scala class
  2. Scala object
  3. Scala Trait
  4. Scala Companion object
  5. Scala case class

Scala Functions and methods

  1. Scala method in detail
  2. Scala function in detail
  3. Scala nested methods
  4. Scala Higher-order functions
  5. Scala Curried or currying functions

Collection

  1. Scala mutable and immutable collections
  2. Arrays
  3. Range
  4. List
  5. Queue
  6. Stack
  7. Scala for loop with examples
  8. Scala yield function
  9. Scala tuple
  10. Scala Guard function
  11. 3 ways of for-loop reverse in Scala
  12. Scala forall method with examples
  13. Iterate a List in Scala using ‘for loop’ and foreach
  14. Iterate an array in Scala using ‘for loop’ and foreach
  15. 2 ways to iterate a list in Scala with examples
  16. 2 ways to iterate a map in Scala with examples
  17. 2 ways to iterate a seq in Scala with examples

 

References: Official documentation

I hope the Scala tutorial was very useful and you were able to understand easily. Please stay in touch with this page as we will be adding more features of Scala tutorial with a clear and concise explanation.

I request you to please leave us feedback such this Scala tutorial can be improved further. 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.