https://github.com/dirkjbosman/func_with_scala
Func / Functions / Fun with Scala :)
https://github.com/dirkjbosman/func_with_scala
functional-programming oop scala
Last synced: 2 months ago
JSON representation
Func / Functions / Fun with Scala :)
- Host: GitHub
- URL: https://github.com/dirkjbosman/func_with_scala
- Owner: dirkjbosman
- License: mit
- Created: 2025-01-08T12:54:11.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-10T11:55:01.000Z (5 months ago)
- Last Synced: 2025-04-03T23:44:10.971Z (2 months ago)
- Topics: functional-programming, oop, scala
- Language: Scala
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
First steps with Scala:
### 1. Install Homebrew (if not already installed)
- Open your terminal and run: `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
- After installation, ensure Homebrew is working correctly: `brew doctor`### 2. Install Java
- Install OpenJDK via Homebrew: `brew install openjdk`
- Add OpenJDK to your environment: `sudo ln -sfn $(brew --prefix openjdk)/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk`
- Verify the installation:`java -version`### 3. Install Scala
- Install Scala: `brew install scala`
- Verify the installation:`scala -version`### 4. (Optional) Install SBT (Scala Build Tool)
- Install SBT: `brew install sbt`
- Verify SBT installation: `sbt sbtVersion`
- Scala Metals VSCode Extention### 5. Terminal Commands:
General
- `% scalac Book.scala`
- `% scala Book.scala`
- `% rm *.class`
- `% rm *.tasty`E.g. exercise_4
- `scalac *.scala`
- `scala *.scala`