Skip to content

Instantly share code, notes, and snippets.

@Teino1978-Corp
Forked from gfredericks/good_arrow.clj
Created October 30, 2015 23:48
Show Gist options
  • Save Teino1978-Corp/2248f00223399e75fdd9 to your computer and use it in GitHub Desktop.
Save Teino1978-Corp/2248f00223399e75fdd9 to your computer and use it in GitHub Desktop.
Replacing my bad logic with arrow syntax
; Had this
(let [g (nf.graph6/graph6-to-set (:graph6 rec)),
unfairness (nf.graphs/unfairness g)]
...)
; and replaced with this
(let [unfairness (-> rec
:graph6
nf.graph6/graph6-to-set
nf.graphs/unfairness)]
...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment