Hi, I have a function that takes a timestamp as an argument and computes some data which is basically a map.
The map looks something like this:
({:description nil, :updated-at #object[com.google.cloud.Timestamp 0x64a8ec27 "2021-07-19T09:24:34.268000000Z"], :completed-by nil, :parent nil, :checklists nil, :last-message-author "unibot", :last-message nil, :process-whitelist-groups nil, :privacy "none", id:10, :whitelisted-groups nil, :type "group", :org-id 1, :outcome nil, :process-owners nil, :title "hjgf", :created-at #object[com.google.cloud.Timestamp 0x6038f825 "2021-07-19T09:24:34.268000000Z"], :origin-seq-no nil}
{:description nil, :updated-at #object[com.google.cloud.Timestamp 0x53fbd4ee "2021-07-19T09:25:00.896000000Z"], :completed-by nil, :parent nil, :checklists nil, :last-message-author "unibot", :last-message nil, :org-id 1, :outcome nil, :process-owners nil, :title "hnbnb", :status-title "pending", :process-whitelist nil, :process-title nil, :canceled nil, :current-version nil, :priority nil, :status -1, :active nil, :id 20, :due-date nil, :count 0, :privacy-settings nil, :files [], :completed-at nil, :reminders nil, :version-comment nil, :groups nil, :version nil, :seq-no nil, :whitelist nil, :created-at #object[com.google.cloud.Timestamp 0x1988f98e "2021-07-19T09:25:00.896000000Z"], :breadcrumbs nil})
We can call this map as data. Now how to filter this data by providing a timestamp to fetch the :id
and :title
only if the time specified is >=?
I tried {:ID :Title (filter #(>= "2021-07-19" (:created-at %)) data)}
but it didn’t work as expected…