Skip to content

wcygan/scala-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scala Practice

Installations

Install Ammonite Mill:

$ brew install ammonite-repl
$ brew install mill

Generate IntelliJ IDEA project files

$ mill mill.scalalib.GenIdea/idea

Running the tests

$ mill lib.test

Examples

Show below are some of the examples you can find in this repository:

Data Structures

Trees

Algorithms

Sorting

Ivy Dependency Issues

Sometimes the ivy dependencies won't automatically be indexed for a scala script for Ammonite

I can sometimes fix this by running mill mill.scalalib.GenIdea/idea and then also I can also click on the highlighted error and choose create library from jar... -> Fix all 'Ammonite unresolved import' problems in file

Directory Tree

You will find the source code in the lib/src/io/wcygan folder.

.
├── build.sc
├── lib
│   ├── src
│   │   └── io
│   │       └── wcygan
│   │           ├── algorithms
│   │           │   ├── search
│   │           │   │   ├── BinarySearch.scala
│   │           │   │   ├── BreadthFirstSearch.scala
│   │           │   │   └── ShortestPath.scala
│   │           │   └── sort
│   │           │       ├── HeapSort.scala
│   │           │       ├── MergeSort.scala
│   │           │       └── Sorter.scala
│   │           └── collections
│   │               └── tree
│   │                   ├── ImmutableTrie.scala
│   │                   └── Trie.scala
│   └── test
│       └── src
│           └── io
│               └── wcygan
│                   ├── algorithms
│                   │   ├── search
│                   │   │   ├── BinarySearchTest.scala
│                   │   │   ├── BreadthFirstSearchTest.scala
│                   │   │   └── ShortestPathTest.scala
│                   │   └── sort
│                   │       └── SorterTest.scala
│                   └── collections
│                       └── tree
│                           ├── ImmutableTrieTest.scala
│                           └── TrieTest.scala
├── mill
├── readme.md
└── scripts
    ├── Hello.sc
    ├── NLargestFiles.sc
    └── scripts.md


About

scala-practice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published