Quantcast
Channel: Viksit Gaur - clojure
Browsing all 10 articles
Browse latest View live

Programming Clojure with Clojure 1.2.0 snapshot

This post contains a list of changes between Clojure 1.1.0 and 1.2.0 that would affect you if you're reading Stuart Halloway's "Programming Clojure". It looks like you'd have to replace,(use...

View Article



20 Days of Clojure

Came across an excellent series of blog posts by Lou Franco, where he uses the SICP videos as input to learn more about Clojure. His explanation of HashMap implementations in Clojure, using...

View Article

Clojure Application with Command Line Arguments

I was recently looking for a method to create an application with Clojure that would allow specification of command line arguments.I came across an excellent post on Stack Overflow by alanlcode , that...

View Article

Implementing Binary Search with Clojure

I was trying to implement a simple binary search using a purely functional approach, and after much hacking, googling and wikibooking, came up with this in Clojure. (defn binarysearch  ([lst n]...

View Article

Thrush Operators in Clojure (->, ->>)

I was experimenting with some sequences today, and ran into a stumbling block: Using immutable data structures, how do you execute multiple transformations in series on an object, and return the final...

View Article


Stack implementation in Clojure using Protocols and Records

I was trying to experiment with Clojure Protocols and Records recently, and came up with a toy example to clarify my understanding of their usage in the context of developing a simple Stack Abstract...

View Article

Stack implementation in Clojure II - A functional approach

My last post on the topic was creating a stack implementation using Clojure protocols and records - except, it used atoms internally and wasn't inherently "functional". Here's my take on a new...

View Article

Serializing Clojure Datastructures

I've been trying to figure out how best to serialize data structures in Clojure, and discovered a couple of methods to do so. (Main reference thanks to a thread on the Clojure Google Group here )(def...

View Article


Mutable vs Immutable datastructures - Serialization vs Performance

In my last post, I was playing around with methods to serialize Clojure data structures, especially a complex record that contains a number of other records and refs. Chas Emerick and others mentioned...

View Article


Reading Java properties file in Clojure

A simple and effective way to read properties files in Clojure, since they transform into Clojure maps!(into{}(doto(java.util.Properties.)         (.load(->(Thread/currentThread)...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images