Fork me on GitHub
#admin-announcements
<
2015-11-21
>
andrei10:11:02

anyone knows what is the state of core.match? I am checking the repo, the release is still tagged with “alpha” and there have been no commits in the last 9 months

gtrak16:11:42

@andrei I'm using it, but I had to bump tools.reader to the current version

arronmabrey19:11:39

Hey all, I'm coming from a Ruby background, trying to learn the clojure/clojurescript standard libs. Is there a built-in function similar it ruby's #each_slice?

ruby
[1,2,3,4,5,6,7,8,9].each_slice(3).to_a == [[1,2,3],[4,5,6],[7,8,9]]
Or is it the Clojure way to just build it your self using primitives like map / reduce?

darwin19:11:00

you can build it yourself of course, but that would require stateful reduction fn

arronmabrey19:11:06

@darwin: Thanks!

arronmabrey19:11:00

That's what I was looking for.

markmandel21:11:17

All, converting code from cljx -> reader conditionals. I'm getting the error:

Loading test/brute/entity_test.clj... 
CompilerException java.lang.RuntimeException: Conditional read not allowed, compiling:(/home/markmandel/workspace/brute/test/brute/entity_test.clj:3:15) 
From the code:
(ns brute.entity-test
  "Tests for the entity management functions"
  (:require #?(:clj [midje.sweet :refer :all])))
Any idea why this isn't working?

markmandel22:11:59

omg, I'm an idiot

markmandel22:11:01

it's not cljc

markmandel22:11:37

Yep, that was it. Figures 😉

dilin23:11:07

does anyone know of a good tutorial/examples of using transducers with the core.async chan function?

j-po23:11:24

@pri: ^maybe?