{"id":32183787,"url":"https://github.com/stackoverflow/wally","last_synced_at":"2026-02-18T21:03:00.817Z","repository":{"id":62435157,"uuid":"12627841","full_name":"stackoverflow/wally","owner":"stackoverflow","description":"a structural function finder for clojure","archived":false,"fork":false,"pushed_at":"2013-09-05T21:09:31.000Z","size":132,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T23:03:16.711Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stackoverflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-05T20:15:41.000Z","updated_at":"2017-11-14T09:19:40.000Z","dependencies_parsed_at":"2022-11-01T21:02:33.559Z","dependency_job_id":null,"html_url":"https://github.com/stackoverflow/wally","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stackoverflow/wally","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackoverflow%2Fwally","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackoverflow%2Fwally/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackoverflow%2Fwally/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackoverflow%2Fwally/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackoverflow","download_url":"https://codeload.github.com/stackoverflow/wally/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackoverflow%2Fwally/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29596125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T20:59:56.587Z","status":"ssl_error","status_checked_at":"2026-02-18T20:58:41.434Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-21T23:03:09.093Z","updated_at":"2026-02-18T21:03:00.802Z","avatar_url":"https://github.com/stackoverflow.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wally\n\nWally is a library to find functions by structure (inputs and outputs) and not by name or documentation like `doc` or `find-doc`.\nWally is aimed at beginners but it can be useful to seasoned clojure programmers too.\n\n## Install\n\nLeiningen:\n\n    [wally \"0.1.1\"]\n\nMaven:\n\n    \u003cdependency\u003e\n        \u003cgroupId\u003ewally\u003c/groupId\u003e\n        \u003cartifactId\u003ewally\u003c/artifactId\u003e\n        \u003cversion\u003e0.1.1\u003c/version\u003e\n    \u003c/dependency\u003e\n\n## Usage\n\nThe main function in the lib is `find-by-sample`. It'll try to find functions that satisfy the supplied output and inputs and will print the doc for every matching function.\n`find-by-sample` will only search for functions on namespaces listed on `white-list-namespaces`:\n\n```clojure\n#{\"clojure.core\"\n  \"clojure.set\"\n  \"clojure.uuid\"\n  \"clojure.walk\"\n  \"clojure.repl\"\n  \"clojure.string\"}\n```\n\nIf you want to supply your own namespaces you can use `find-by-sample-for-namespaces` but take care as this function will execute *every* function in the supplied namespaces (except for functions terminated on `!`).\n\nSome examples:\n\n```clojure\nuser=\u003e (use 'wally.core)\nnil\nuser=\u003e (find-by-sample {1 1, 2 3, 3 1, 4 2} [1 2 3 4 4 2 2])\n-------------------------\nclojure.core/frequencies\n([coll])\n  Returns a map from distinct items in coll to the number of times\n  they appear.\n```\n\n```clojure\nuser=\u003e (find-by-sample #{4} #{1 2 3 4} #{4 5 6 7})\n-------------------------\nclojure.set/select\n([pred xset])\n  Returns a set of the elements for which pred is true\n-------------------------\nclojure.set/intersection\n([s1] [s1 s2] [s1 s2 \u0026 sets])\n  Return a set that is the intersection of the input sets\n```\n\n```clojure\nuser=\u003e (find-by-sample 4 2 2)\n-------------------------\nclojure.core/unchecked-multiply\n([x y])\n  Returns the product of x and y, both long.\n  Note - uses a primitive operator subject to overflow.\n-------------------------\nclojure.core/+\n([] [x] [x y] [x y \u0026 more])\n  Returns the sum of nums. (+) returns 0. Does not auto-promote\n  longs, will throw on overflow. See also: +'\n-------------------------\nclojure.core/*\n([] [x] [x y] [x y \u0026 more])\n  Returns the product of nums. (*) returns 1. Does not auto-promote\n  longs, will throw on overflow. See also: *'\n-------------------------\nclojure.core/unchecked-add\n([x y])\n  Returns the sum of x and y, both long.\n  Note - uses a primitive operator subject to overflow.\n-------------------------\nclojure.core/+'\n([] [x] [x y] [x y \u0026 more])\n  Returns the sum of nums. (+) returns 0. Supports arbitrary precision.\n  See also: +\n-------------------------\nclojure.core/unchecked-multiply-int\n([x y])\n  Returns the product of x and y, both int.\n  Note - uses a primitive operator subject to overflow.\n-------------------------\nclojure.core/*'\n([] [x] [x y] [x y \u0026 more])\n  Returns the product of nums. (*) returns 1. Supports arbitrary precision.\n  See also: *\n-------------------------\nclojure.core/unchecked-add-int\n([x y])\n  Returns the sum of x and y, both int.\n  Note - uses a primitive operator subject to overflow.\n```\n\n## License\n\nCopyright © 2013 Islon Scherer\n\nDistributed under the Eclipse Public License, the same as Clojure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackoverflow%2Fwally","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackoverflow%2Fwally","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackoverflow%2Fwally/lists"}