Skip to content
Snippets Groups Projects
Commit c02cd9c6 authored by Cam Saul's avatar Cam Saul
Browse files

sane implementation of field seq -> type

parent 844d2035
Branches
Tags
No related merge requests found
......@@ -52,7 +52,8 @@
[values-seq]
{:pre [(sequential? values-seq)]}
(or (->> values-seq
(filter identity)
(filter identity) ; TODO - why not do a query to return non-nil values of this column instead
(take 1000) ; it's probably fine just to consider the first 1,000 non-nil values when trying to type a column instead of iterating over the whole collection
(group-by type)
(map (fn [[type valus]]
[type (count valus)]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment