Posts tagged clojure

How to do interfaces in clojure? protocols

Read more ...


Clojure in docker

Container:

Read more ...


Clojure Spec

Note: Instrumentation only works for :args in a function definition. :fn and :ret are only used during generative / property based testing.

Read more ...


clj

Here is an example how you can enhance the vanilla clj tool: https://github.com/seancorfield/clj-new

Read more ...


Graphing (n more) Libraries

Here are some of the graphing libraries that I have found:

Read more ...


Clojure compilation

https://blog.ndk.io/clojure-compilation.html

Read more ...


Babashka

Shell scripting in clojure.

Read more ...


Writing a DSL

Let us make a calculator that would evaluate expressions like:

Read more ...


Unmap a symbol from a namespace

The simplest would be to update the expression that loads everything e.g.:

Read more ...


Reflection

Get all the methods on a symbol - like the auto-complete functionality:

Read more ...


Collections vs Sequences

Taken from Brain on fire blog:

Read more ...


Clojure runner

The runner, invoked by calling clojure or simply clj is a tool/script to invoke the clojure compiler and the repl.

Read more ...


Clojars

Clojars is a repository for clojure libraries (like maven for java)

Read more ...


Spacemacs

A lot of cool cider goodies!

Read more ...


Leiningen

Create a very minimal application using the default template

Read more ...


conj

Append to list.

Read more ...


Function composition

Here are a few ways to create new functions from existing functions:

Read more ...


Generate project dependency graph

ns-dep-graph is a lein plugin for visualizing the dependency graph of a project.

Read more ...


Benchmarking

https://github.com/hugoduncan/criterium

Read more ...


Pivot

Let’s say you have the following 2 vectors:

Read more ...


Iterate a hash map

Read more ...


How to map while retaining the index?

todo

Read more ...