Hi!
Say I have the words
(def data ["bird" "cat" "whale" "elephant"])
and I want to calculate the ratio: words that has <= 4 letters / all words. The sort of closest I get is:
(?<- (stdout) [?short ?count] (data ?word) (letters-4-or-more? ?word :> ?short) (c/count ?count))
(If that would actually work, there is some problem that I posted about in another thread named "count breaks my queries".)
But is there a way to actually compute the ratio right there in the query?