Re: clojure is supposed to be 'code is data' yet I can't add to the end of a list?

2021-07-19 Thread SideStep
t to supply a sequence of instructions to modify it, > and you want to inspect and manipulate those instructions, then I'd suggest > something like: > > (transform > (grid 10 10) > [[:toggle 2 3 4 5] > [:off 2 3 4 5] > [:on 2 3 4 5]]) > &g

Re: clojure is supposed to be 'code is data' yet I can't add to the end of a list?

2021-07-18 Thread SideStep
> (concat grid '((off 1 2 3 6))) > (-> (grid 10 10) (toggle 2 3 4 5) (off 2 3 4 5) (on 2 3 4 5) (off 1 2 3 6)) > > Though I'm not exactly sure what is the end goal of this but I'd rethink > the way it is done. > > > > On Sat, 17 Jul 2021 at 14:24,

clojure is supposed to be 'code is data' yet I can't add to the end of a list?

2021-07-17 Thread SideStep
I have a representation of a matrix in grid.clj file: (-> (grid 10 10) (toggle 2 3 4 5) (off 2 3 4 5) (on 2 3 4 5)) It's a list of functionts, first one initializes a grid, others modify it. Clojures' 'code is data' supposed to mak

Re: logic programming - find synonyms of a given word

2021-04-10 Thread SideStep
t;, I need one set of synonyms for > "places to put your money" and another set for "the side of a river" and > another set for "to hit [an object] off a wall or other barrier". Unless > you have some other annotation besides the word so that you can dis

logic programming - find synonyms of a given word

2021-04-09 Thread SideStep
Task is to write a program that can decide whether two words are synonyms or not. I have pairs of synonymous words, E.g.: [big large] [large huge] [small little] We can derive the synonymous relationship indirectly: if big is a synonym for large and large is a synonym for huge then b

Without breakloop not much of a REPL

2021-01-29 Thread SideStep
According to this post: https://mikelevins.github.io/posts/2020-12-18-repl-driven/ Breakloop is a true differentiator for "real" REPLs. I can see how breakloop really is a game changer. Also, there is no breakloop in modern languages such as clojure, which is heralded for it's REPL driven de