kotlin-cli-gradle-ugly-pattern-matching
Description
Divide the number by greatest divisible powers of 2, 3 and 5, if the number becomes 1 then it is an ugly number otherwise not. Follows functional programming practices. Kotlin doesn't support true pattern matching, instead this a case statement.
Tech stack
- kotlin
Docker stack
- gradle:4.2.1-jdk8-alpine
To run
sudo ./install.sh -u
To stop (optional)
sudo ./install.sh -d
For help
sudo ./install.sh -h