specter

Latest version: 1.1.3
nathanmarz 2018-09-14T03:42:36.000100Z

@idiomancy yes, srange-dynamic would work for that

mpenet 2018-09-14T11:32:17.000100Z

how would you write a transform that modifies every string value in a tree? I have yet to check the doc but I figured I might just ask here in the meanwhile 😛

schmee 2018-09-14T11:33:45.000100Z

(transform (walker string?) your-fn your-coll)

schmee 2018-09-14T11:33:59.000100Z

not the most efficient way but gets the job done

schmee 2018-09-14T11:34:39.000100Z

if you need performance, write your own recursive navigator: https://github.com/nathanmarz/specter/wiki/Using-Specter-Recursively#a-basic-example

mpenet 2018-09-14T11:34:57.000100Z

reading that at the moment, that seems like what I am looking for indeed. thanks

Petrus Theron 2018-09-14T12:10:10.000100Z

Has anyone used Specter for Matrix algebra? I'm dealing with Kalman filtering N streams of data, and I have to do all this ceremony around assigning an index to each sensor value, multiplying some matrixes together that are really about (premature) index-based optimization, then I have to un-index them again - basically, lensing.

nathanmarz 2018-09-14T12:51:10.000100Z

@petrus I've done some stuff with matrices

nathanmarz 2018-09-14T12:52:26.000100Z

you'll want custom navigators for them to do anything sophisticated

nathanmarz 2018-09-14T12:53:08.000100Z

e.g. a "submat" navigator that navigates to an arbitrary sub-matrix

nathanmarz 2018-09-14T12:53:29.000100Z

"row" and "col" navigators can be useful too