TODO Description
bigint
: For infinite precision integer arithmeticdiagnonal
:triplet
:clock
: convert time from 12-hour format to 24-hour formatposition
: find the index of the given number in an array
- Add
:plugins [[lein-gorilla "0.4.0"]]
toproject.clj
- Run
lein gorilla
to launch the repl
To add a new module called XXX
- Add a new file
src/XXX.clj
- At the top of the file, add the name space for this module
(ns clojure-learn.XXX (:gen-class))
- Add a new file test/XXX_test.clj
- At the top of the file add the namespace of the test and all the dependencies
(ns clojure-learn.XXX-test
(:require [clojure.test :refer :all]
[clojure-learn.bigint :refer :all]))
To run all tests in project
lein test
To run all tests for XXX
lein test clojure-learn.XXX-test
To run only a specific test
lein test :only clojure-learn.bigint-test/name_of_the_test
- Github markdown editor and viewer
- Clojars - repo for open source clojure modules
- Gorilla Repl - A notebook type repl for Clojure (think Jupyter ...)
Profling Clojure Code https://torsten.io/stdout/how-to-profile-clojure-code/ using (VisualVM)[https://visualvm.github.io/]
The HackerRank Environment for Clojure imposes a 8second time limit for execution, and a maximum memory consumption of 512MB
- Support for debug printing
- SUBTRACT works only for +ve numbers and where v1 > v2
- no support for MULT, DIV, or MOD