Lisp (Programming Language)

clojure's -> (arrow) operator and optional operations

I've run in several situations where I want to do a chain of operations on an object with optional functions. "->" works great for sequences of …

Clojure

lein ring uberjar -- java.lang.NoClassDefFoundError: clojure/lang/Var

Not certain why when i lein with-profile +live ring uberjar and then java -jar my uberjar i get this exception java.lang.NoClassDefFoundError: …

Clojure

how to use structure member types for hashing?

I am porting a hashing code for XDR communication, so It needs to hash the data type to send it. Types should be uint8 sint8, uint16, sint16, ... , …

Programming

Clojure —Lessons from Laziness

Laziness can be a good thing. Maybe the best of things?<p>Surely at the backend of computations, being lazy is mighty powerful. Clojure is beautiful in …

Clojure

Here are the tech stacks used by 9 Baltimore companies

The uses and functions of the platforms and products that tech companies are creating generates lots of interest. That makes sense, given But what …

Databases

When is meta-programming done in Python

I have read a paper that seems to say that meta-programming of Lisp, Scheme, and Lisp-like macros happens at compile time: …

Programming

Clojure - No matching method found

Can't figure out why clojure is telling me this function name can't be found. I'm trying to call the setProperties function on a CloudBlockBlob, …

Clojure

Clojure - How to Declare a Collection or Vector of a Record

How Can I define a Record Collection or a Vector of Records?I have this snippet code:(defrecord Transaction [a, b, c])I want define a Transaction …

Vinyl Records

What are the limitations of forward declaring in Clojure? Why can't I use comp in this example?

I like my code to have a "top-down" structure, and that means I want to do exactly the opposite from what is natural in Clojure: functions being …

Clojure

Calling function from another namespace in ClojureScript

I'm a newbie with CojureScript because I got the LISP itch some months ago and then I migrated the API to Clojure and I'm loving it. Now I want to …

JavaScript

Leiningen throws clojure.lang.PersistentVector cannot be cast to clojure.lang.Named

I'm a Java developer taking first steps with Clojure. I have put together a simple project using <b>Leiningen 2.8.1</b> and <b>Clojure 1.9.0</b>. The code of my …

Clojure

Validating anonymous functions passed in to my function at runtime, with clojure spec

Say I have a function a that takes a function (fn) as an argument:(defn a [f] ....).For the sake of giving a nice error message to the caller, I …

Clojure

Creating file with non-editable parts

Is it possible in Clojure to spit a file that has non-editable parts, as if you are creating a template, and you want certain entries in it. The user …

Clojure

The Functional Style – Part 1

An introduction. Functional programming is a very hot topic nowadays. People are increasingly interested in functional and hybrid-functional …

Programming

Clojure API

MXNet - Clojure API¶<p>MXNet supports the Clojure programming language. The MXNet Clojure package brings flexible and efficient GPU computing and …

Deep Learning

Function not returning (Clojure)

I am new to clojure, my function elligble voters is not returning the vector, where am i going wrong.

Clojure

Assertions in Clojure applications enabled by default when running uberjar built with leiningen

Should assertions be enabled by default when running a Clojure application as a jar?We use leiningen to build an uberjar and then java -jar ... to …

Clojure

Clean Code, Episode 53: Introduction To Functional Programming

Welcome to our series on <i>Functional Programming</i>! Are you ready for some fun?<p>So, yeah, I'm sure you've heard all the fuss about functional programming …

Programming

Debugging a slow performing function in Clojure

I am trying to implement a solution for minimum-swaps required to sort an array in clojure.The code works, but takes about a second to solve for the …

Clojure

Advanced Functional Data Structures and Algorithms

<b>Get acquainted with complex data structures and algorithms with simple functional implementations</b><p>Description<p>Algorithms and datastructures are …

Programming

Unobtrusive Way to Trim Cycle in Clojure Sequence

I am trying to write a lazy seq to generate the Collatz sequence for a given input int.I love this function because is so cleanly maps to the …

Clojure

How To Unit Test MongoDB with Luminus?

I'm probably missing something simple, but I'm not experienced enough with clojure to understand the error I'm getting.I have a simple luminus …

Clojure

Clojure/compojure: How do you process user input from a webform?

I am making a Clojure web-app to process numeric input data. I have set up the main page and am working on having the inputed data processed and …

Clojure

Cursive vs Cider

I personally believe in #EmacsAllTheThings and have a great time with Cider, but am aware that emacs itself can be a problem to some people and that …

Emacs

Clojure promise inside atom map

I am trying to track requests to a server, and do something when the data is ready. I have the following code which seems to work but I wonder if …

Clojure

Simple 2D array in Clojure

I'm still learning Clojure and can't seem to find a simple answer for this. I've seen similar questions answered with complex code specific for the …

Clojure

What programming language do you recommend to write your own compression logic for text mainly

I've got interested in programming recently and unfortunately just can't decide witch programming language to pick. My ideal language would be …

Clojure

Environment variables used in `def` statements in Clojure

I have this piece of code:where (env :var1) is fetching environment variable VAR1 (with the help of environ) that points to a directory location and …

Clojure

IllegalStateException Attempting to call unbound fn

I realize that this question has been asked before, but I couldn't find an answer for the problem I have. The below code errors out at - "(println …

JavaScript

Functional programming talks

I am a host of Fun(c) group in Bellevue, WA, USA. It’s a meetup for programmers of all levels to learn about functional programming (FP).<br>We welcome …

Programming