{"id":15010304,"url":"https://github.com/blackwakhu/introduction-to-functional-programming","last_synced_at":"2026-04-04T06:05:08.152Z","repository":{"id":250660111,"uuid":"835087781","full_name":"blackwakhu/introduction-to-functional-programming","owner":"blackwakhu","description":"introduction to functional programming","archived":false,"fork":false,"pushed_at":"2024-07-29T07:06:20.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T20:36:17.166Z","etag":null,"topics":["clojure","functional-programming","replit","tutorial","tutorial-code"],"latest_commit_sha":null,"homepage":"https://replit.com/@shiberoderrickw/ElatedWelcomeInstitute","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blackwakhu.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":"2024-07-29T06:19:03.000Z","updated_at":"2024-07-29T07:25:03.000Z","dependencies_parsed_at":"2024-07-29T07:59:08.978Z","dependency_job_id":null,"html_url":"https://github.com/blackwakhu/introduction-to-functional-programming","commit_stats":null,"previous_names":["blackwakhu/introduction-to-functional-programming"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blackwakhu/introduction-to-functional-programming","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackwakhu%2Fintroduction-to-functional-programming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackwakhu%2Fintroduction-to-functional-programming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackwakhu%2Fintroduction-to-functional-programming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackwakhu%2Fintroduction-to-functional-programming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blackwakhu","download_url":"https://codeload.github.com/blackwakhu/introduction-to-functional-programming/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackwakhu%2Fintroduction-to-functional-programming/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28076810,"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","status":"online","status_checked_at":"2025-12-27T02:00:05.897Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["clojure","functional-programming","replit","tutorial","tutorial-code"],"created_at":"2024-09-24T19:33:29.593Z","updated_at":"2025-12-27T09:26:08.952Z","avatar_url":"https://github.com/blackwakhu.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction to functional programming with clojure\nThis is an existing branch that I am really existed to try.\n## Basics of clojure\nWe begin by the hello world code\n```clojure \n(println \"hello world\")\n```\nwe can also add some comments\n```clojure\n;; this is a hello world function\n```\n### Basic math operations\nThis includes the following designs\n1. Addition \n```clojure \n(+ 1 2)\n```\n2. Subtraction\n```clojure \n(- 2 1)\n```\n3. Multiplication\n```clojure \n(* 5 2)\n```\n4. Division\n```clojure \n(/ 10 2)\n```\n5. Modulo\n```clojure \n(mod 5 3)\n```\n### functions\n1. basic functions with no parameters\n```clojure\n(defn hello-world [] (println \"hello world\"))\n(hello-world)\n```\n2. function with a single parameter\n```clojure\n(defn say-hello [name] (println \"hello \"name))\n(say-hello \"derrick\")\n```\n3. function with different arity\n```clojure\n(defn messenger\n  ([] (println \"no name to send to\"))\n  ([name] (println \"sending to \"name))\n)\n\n(messenger)\n(messenger \"derrick\")\n```\n4. function with many parameters\n```clojure\n(defn write-names [fname surname] (println \"hello\" fname surname))\n\n(write-names \"derrick\" \"shibero\")\n```\n5. variadic functions i.e. functions with many variables\n```clojure\n(defn hello [greeting \u0026 who]\n  (println greeting who)\n)\n(hello \"Hello\" \"world\" \"class\")\n```\n6. anonymous functions\n```clojure\n((fn [word](println \"the programming language is\"word)) \"clojure\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackwakhu%2Fintroduction-to-functional-programming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackwakhu%2Fintroduction-to-functional-programming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackwakhu%2Fintroduction-to-functional-programming/lists"}