On Nov 21, 2013 3:32 AM, "Zhemin Lin" wrote:
> What if :cf, :cq are not fixed, and I don't really care about the keys,
but only the value of the value of the value ...?
Maps seem an awkward choice of data-structure for a scenario where you
don't know or care about the keys.
--
--
You received
Clojure-hbase returns {rowkey {:cf {:cq value }}} and its a trade-off not
to write it in hbase API.
2013/11/21 21:24 "John D. Hume" :
> On Nov 21, 2013 3:32 AM, "Zhemin Lin" wrote:
> > What if :cf, :cq are not fixed, and I don't really care about the keys,
> but only the value of the value of the
Wow, that's really cool!
Thanks a lot, John!
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To
On Thu, Nov 21, 2013 at 4:32 AM, Zhemin Lin wrote:
> Thanks, John & Jernau.
> What if :cf, :cq are not fixed, and I don't really care about the keys, but
> only the value of the value of the value ...?
You might want to consider tree-seq to get at the innermost string:
(last (tree-seq map? v
Thanks, John & Jernau.
What if :cf, :cq are not fixed, and I don't really care about the keys, but
only the value of the value of the value ...?
Thanks,
Zhemin.
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email t
ugly smell of (first (vals (first ... )). Is
> there any better way to do it?
>
> user=> (-> {:key1 {:cf {:cq "0,1,2,3"}}} vals first vals first vals first
> (clojure.string/split #","))
> ["0" "1" "2" "3"]
>
>
On Thu, Nov 21, 2013 at 4:08 AM, Zhemin Lin wrote:
> Hi.
> I'm quite annoyed by the ugly smell of (first (vals (first ... )). Is there
> any better way to do it?
>
> user=> (-> {:key1 {:cf {:cq "0,1,2,3"}}} vals first vals first vals first
> (clojure.str
Hi.
I'm quite annoyed by the ugly smell of (first (vals (first ... )). Is
there any better way to do it?
user=> (-> {:key1 {:cf {:cq "0,1,2,3"}}} vals first vals first vals first
(clojure.string/split #","))
["0" "1" "2" "3&qu