{"id":19238284,"url":"https://github.com/olical/collatz","last_synced_at":"2025-02-23T13:52:23.992Z","repository":{"id":66128230,"uuid":"86753085","full_name":"Olical/collatz","owner":"Olical","description":"Collatz conjecture computation with snazzy rendering.","archived":false,"fork":false,"pushed_at":"2017-04-04T21:06:04.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-05T02:10:36.339Z","etag":null,"topics":["clojure","collatz","collatz-conjecture","quill"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Olical.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-30T22:03:12.000Z","updated_at":"2023-07-25T14:08:06.000Z","dependencies_parsed_at":"2023-02-22T20:30:35.256Z","dependency_job_id":null,"html_url":"https://github.com/Olical/collatz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olical%2Fcollatz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olical%2Fcollatz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olical%2Fcollatz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olical%2Fcollatz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Olical","download_url":"https://codeload.github.com/Olical/collatz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240324061,"owners_count":19783453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["clojure","collatz","collatz-conjecture","quill"],"created_at":"2024-11-09T16:30:31.207Z","updated_at":"2025-02-23T13:52:23.965Z","avatar_url":"https://github.com/Olical.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# collatz\n\nThe [Collatz conjecture][wiki] in Clojure as a lazy sequence. Also includes a neat visualisation inspired by [this awesome video][numberphile], you can run the visualisation with `lein run`.\n\nNothing will render until you hit the `Enter` key, and even then it may take a little while, it's fairly CPU intensive.\n\n\u003e Visualisation is still completely wrong right now, it still looks kind of neat, but it's not the final product.\n\nYou'll find the actual Collatz sequence function in the `collatz.core` namespace.\n\n```clojure\n(ns cool.thing\n  (:require [collatz.core :as c]))\n\n(first (c/collatz 1000)) ;; Returns 1000, the seq starts where you specify and counts down.\n(last (c/collatz 1000)) ;; Returns 1, as it always will be, I assume?\n```\n\nIf the last value is ever not 1, notify your closest mathematician and run.\n\n[wiki]: https://en.wikipedia.org/wiki/Collatz_conjecture\n[numberphile]: https://www.youtube.com/watch?v=LqKpkdRRLZw\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folical%2Fcollatz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folical%2Fcollatz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folical%2Fcollatz/lists"}