Skip to main content

All Questions

Tagged with
2 votes
0 answers
27 views

Tic Tac Toe CLI in Clojure

I wrote a command line tic tac toe game in Clojure. I've broken this post into three sections: Feedback Requests, Gameplay, and Code Feedback Requests I'm looking for feedback on: How "idiomatic&...
cgoates's user avatar
  • 175
0 votes
1 answer
35 views

Reduce run time in Clojure

I have a task which runs sequentially. If I have hundreds of thousands of tags, it is very time consuming. Can this be modified to run the task in parallel? Works fine upto 100 tags ...
Bindiya H's user avatar
  • 101
1 vote
2 answers
230 views

Clojure Prime Numbers from 1 to 1000

I am a beginner to Clojure and I made a little script that prints out every prime number from 1 to 1000. Let me know if there are any improvements that I can make: ...
code writer 3000's user avatar
5 votes
1 answer
261 views

Hackerrank: Breaking the records

I'm learning Clojure and am a rank n00b at it, trying to learn from books and online tutorials (but I'm sometimes concerned that I am picking up bad habits or at least not all the good habits). For ...
frIT's user avatar
  • 153
2 votes
1 answer
54 views

A program that expands a list of maps and chooses a random element

This is the essence of chapter 3 of "Clojure for the Brave and True". This program is about completing the list asym-hobbit-body-parts by adding a given number of ...
Uzaku's user avatar
  • 123
3 votes
2 answers
85 views

What does the Bob say? (clojure version)

I'm doing the exercices from clojureacademy. Here are the instructions for this one. Bob is a lackadaisical teenager. In conversation, his responses are very limited. Returns "Whatever." if ...
little-dude's user avatar
5 votes
2 answers
220 views

Implementing parser combinators in a functional manner

I am just starting on my journey of learning clojure (I have just read to the end of chapter 3 in clojure for the brave and true). So for practice, I wrote some parser combinator functions. I am quite ...
user1762507's user avatar
3 votes
1 answer
275 views

Solving Knight's Travails Problem without using vector for position

I'm trying to implement a solution to the The Odin Project - Project 2: Knight’s Travails in Clojure (Functional Programming) based on the solution posted by benjdelt. I would like to know your ...
Vasco Ferreira's user avatar
6 votes
1 answer
151 views

Clojure "Game of Life"

I'm a Clojure beginner and I implemented Game of life to learn how I should code things in Clojure. ...
minebreaker's user avatar
2 votes
2 answers
159 views

Find the middle of the string

The follow code should correctly run the test cases at the bottom. It works correctly. I just don't feel like this is clearest way I could write it. A lot of the complexity comes from having to ...
TMB's user avatar
  • 209
0 votes
3 answers
881 views

Binary search algorithm in Clojure

I'm absolutely new to Clojure (started learning it yesterday). After I went through some tutorials and checked out the basics I implemented the following Binary search algorithm: ...
Farkas István's user avatar
4 votes
0 answers
182 views

Attempt at Idiomatic Hangman in Clojure

I am pretty new to Clojure & am loving it so far. After going through a few resources, I decided to make a hangman game. I'm wondering how idiomatic is my code & where can I improve it ...
AnEnigmaticBug's user avatar
2 votes
1 answer
182 views

Sorting algorithms and command-line interface

I have implemented both some sorting algorithms (namely bubble sort and merge sort), as well as a command-line interface, in ...
Qwerp-Derp's user avatar
1 vote
1 answer
100 views

Parsing string into hash-map with 2D coordinates as keys

I had never programmed in a functional programming language before. I think that this function has large nesting. Is there way to rewrite it better? I am most worried about the use of "flatten". Is ...
KgOfHedgehogs's user avatar
6 votes
1 answer
386 views

2048 game implementation in Clojure

This is my first Clojure program. If you want to run it locally please check out https://github.com/achikin/game2048-clj core.clj ...
Anton Chikin's user avatar

15 30 50 per page