Skip to content

Instantly share code, notes, and snippets.

@mpenet
Last active December 15, 2015 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpenet/5224355 to your computer and use it in GitHub Desktop.
Save mpenet/5224355 to your computer and use it in GitHub Desktop.
(defmacro has
([p k v]
`(.has ^GremlinPipeline ~p ~(name k) ~v))
([p k c v]
`(.has ^GremlinPipeline ~p ~(name k)
(convert-symbol-to-compare '~c)
~v)))
(defmacro has-not
([p k v]
`(.hasNot ^GremlinPipeline ~p ~(name k) ~v))
([p k c v]
`(.hasNot ^GremlinPipeline ~p ~(name k)
(convert-symbol-to-compare '~c)
~v)))
Compiling namespace ogre.filter
Compiling namespace ogre.branch
Compiling namespace ogre.tinkergraph
Reflection warning, ogre/side_effect.clj:106 - reference to field getA can't be resolved.
Compiling namespace ogre.traverse
Reflection warning, ogre/side_effect.clj:106 - reference to field getB can't be resolved.
Compiling namespace ogre.pipe
Compiling namespace ogre.side-effect
Reflection warning, ogre/side_effect.clj:106 - reference to field getA can't be resolved.
Reflection warning, ogre/side_effect.clj:106 - reference to field getB can't be resolved.
Compiling namespace ogre.reduce
Compiling namespace ogre.core
Compiling namespace ogre.map
Compiling namespace ogre.core
Compiling namespace ogre.util
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment