How to use combinatorics/cartesian-product with a coll?
The problem is that combinatorics/cartesian-product expects its operands flat, but I have them in a coll. My solution was to simply prepend comb/cartesian-product to the coll:
How to use combinatorics/cartesian-product with a coll?
The problem is that combinatorics/cartesian-product expects its operands flat, but I have them in a coll. My solution was to simply prepend comb/cartesian-product to the coll:
How to use combinatorics/cartesian-product with a coll?
The problem is that combinatorics/cartesian-product expects its operands flat, but I have them in a coll. My solution was to simply prepend comb/cartesian-product to the coll:
How to use combinatorics/cartesian-product with a coll?
The problem is that combinatorics/cartesian-product expects its operands flat, but I have them in a coll. My solution was to simply prepend comb/cartesian-product to the coll:
How to use combinatorics/cartesian-product with a coll?
The problem is that combinatorics/cartesian-product expects its operands flat, but I have them in a coll. My solution was to simply prepend comb/cartesian-product to the coll:
How to use combinatorics/cartesian-product with a coll?
The problem is that combinatorics/cartesian-product expects its operands flat, but I have them in a coll. My solution was to simply prepend comb/cartesian-product to the coll:
How to use combinatorics/cartesian-product with a coll?
The problem is that combinatorics/cartesian-product expects its operands flat, but I have them in a coll. My solution was to simply prepend comb/cartesian-product to the coll:
clojure map transformation with Input values from sequence
Need Help in transforming data from map using a function
Filter into two different collections
(let [ truthys (filter #(filter-func %) coll) falsys (filter #(not filter-func %) coll)] This code traverves coll twice and applys filter-func twice to each element. I was wondering, is there a way to filter coll into both truthys and falsys in just one go? clojure 1 (let [{truhys true, falsys false} (group-by filter-func coll)] …) […]
Filter into two different collections
(let [ truthys (filter #(filter-func %) coll) falsys (filter #(not filter-func %) coll)] This code traverves coll twice and applys filter-func twice to each element. I was wondering, is there a way to filter coll into both truthys and falsys in just one go? clojure 1 (let [{truhys true, falsys false} (group-by filter-func coll)] …) […]