specter

Latest version: 1.1.3
nathanmarz 2018-08-29T05:02:31.000100Z

@jlle ALL on maps during transform navigates to vectors for map entries

nathanmarz 2018-08-29T05:03:07.000100Z

replace map? and map-entry? lines with coll? to fix it

jose 2018-08-29T11:09:22.000100Z

@nathanmarz that was the piece I was missing, thanks for the info

jose 2018-08-29T11:09:29.000100Z

My transformation is a bit more complex, what I'm trying to do is to transform all the string to keywords, except for the map values where the map key matches some condition. Easier to understand with an example:

jose 2018-08-29T11:10:13.000100Z

jose 2018-08-29T11:10:45.000100Z

which returns {:X "Y", :Z 1, :I {:X "Z"}} I found that the transformation fails in cases like this: {"X" "Y" "I" ["X" "Z"]} so I updated the transformation function to:

jose 2018-08-29T11:11:20.000100Z

nathanmarz 2018-08-29T16:57:26.000100Z

@jlle don't handle the map entry case separately, hande it on map? case as [ALL (if-path [FIRST (pred= "X")] FIRST ALL) p]

👍 1
jose 2018-08-29T19:07:17.000200Z

right, that's a better solution, thanks a lot for the tip