Skip to content

Instantly share code, notes, and snippets.

@jstaffans
Last active September 28, 2016 19:52
Show Gist options
  • Save jstaffans/1f24005c77ac2f256ddf to your computer and use it in GitHub Desktop.
Save jstaffans/1f24005c77ac2f256ddf to your computer and use it in GitHub Desktop.
Functionality to include in learn-specter

redplanetlabs/specter#45

New stuff:

  • Precompilation feature enabling performance rivaling hand-optimized code
  • Facilities for creating recursive navigators, including pre-walk and post-walk traversals (declarepath/providepath, stay-then-continue, continue-then-stay)
  • ClojureScript support
  • Conditional navigation (if-path, cond-path)
  • Protocol paths: navigate based on the type of data encountered
(select [MAP-VALS (filterer [:id #(= 1 %)])] {:h {:id 1 :ad 2} :ho {:id 2 :ad 3}})
nathanmarz @vikeri `filterer` treats input as a sequence
if you change `filterer` to `selected?` it should work
and you don't need to wrap the subpath in `[]`
@jstaffans
Copy link
Author

Setval + srange + nil to eliminate subsequence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment