Skip to content

Commit

Permalink
Update example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
aperiodic committed Sep 21, 2012
1 parent 6d066a4 commit c7ac4a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ Basically, what it does is take input arguments and an expected output, and it t
```clojure
user=> (use 'findfn.core)
nil
user=> (find-fn 6 3 3) ; 6 is the expected output and the 3s are the input
user=> (use '[clojail.testers :only [secure-tester] :rename {secure-tester tester}])
nil
user=> (find-fn tester 6 3 3) ; 6 is the expected output and the 3s are the input
(clojure.core/+ clojure.core/unchecked-add clojure.core/+' clojure.core/unchecked-add-int)
user=> (find-arg [2 3 4] map '% [1 2 3]) ; Finds a function to pass to a higher order function
user=> (find-arg tester [2 3 4] map '% [1 2 3]) ; Finds a function to pass to a higher order function
(clojure.core/unchecked-inc-int clojure.core/unchecked-inc clojure.core/inc clojure.core/inc')
```

Expand Down

0 comments on commit c7ac4a9

Please sign in to comment.