Scala code examples
This repository has my learning scala examples
- Case class
- Companion Object
- CSV Writer
- Fibonacci number
- Currying Function
- FizzBuzz
- Array
- Closure
- Partial Function
- Enum
- Function Literal
- Higher-order function
- Pattern Matching
- Pattern Matching as function
- Tail Recursion
- Write Controls
- Exception Handling
- Functional way of handling An exception
- Filter List[Any] using flatMap and filter
- Use of Wildcard
- Sealed trait
- Lazy Evaluation
- Looping using for,foreach and for-expression
- Option's fold
- Default Parameters
- Variable Length Argument
- Partial Applied function
- Scala's Range
- Use of conditional operator
- Sequence e.g List, Seq
- Single Responsibility
- Strategy Pattern
- String Interpolation
- Pattern Matching in Regex
- Functional Programming Red Cover book's example