{"id":20098135,"url":"https://github.com/davidnwaneri/recdart","last_synced_at":"2025-03-02T16:29:18.463Z","repository":{"id":155250960,"uuid":"627711191","full_name":"davidnwaneri/recdart","owner":"davidnwaneri","description":"Examples showcasing recursive functions in Dart","archived":false,"fork":false,"pushed_at":"2023-04-14T05:14:29.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T03:44:39.138Z","etag":null,"topics":["dart","dartlang","dartlanguage","hacktoberfest","recursion","recursive","recursive-algorithm","recursive-functions"],"latest_commit_sha":null,"homepage":"","language":null,"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/davidnwaneri.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":"2023-04-14T03:15:46.000Z","updated_at":"2023-09-30T14:03:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e6baba6-cd71-439f-867b-32334d000e42","html_url":"https://github.com/davidnwaneri/recdart","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/davidnwaneri%2Frecdart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidnwaneri%2Frecdart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidnwaneri%2Frecdart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidnwaneri%2Frecdart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidnwaneri","download_url":"https://codeload.github.com/davidnwaneri/recdart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241536575,"owners_count":19978365,"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":["dart","dartlang","dartlanguage","hacktoberfest","recursion","recursive","recursive-algorithm","recursive-functions"],"created_at":"2024-11-13T17:01:55.656Z","updated_at":"2025-03-02T16:29:18.443Z","avatar_url":"https://github.com/davidnwaneri.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# RecDart\n\n# Recursion in Dart Language\n\nThis repository contains examples and explanations of recursion in Dart language.\n\n## What is recursion?\n\nRecursion is a technique of solving a problem by breaking it down into smaller sub-problems that are similar in nature to the original problem. In programming, recursion involves a function calling itself repeatedly until a base condition is met.\n\n## Why use recursion?\n\nRecursion can simplify complex problems that can be broken down into smaller, similar sub-problems. It can also make code more readable and easier to maintain.\n\n## Getting Started\n\nTo use these examples, you will need to have Dart installed on your machine. You can download and install Dart from the official website [https://dart.dev/get-dart](https://dart.dev/get-dart), or you can quickly get started by using [dartpad](https://dartpad.dev/).\n\nOnce you have Dart installed, you can clone this repository using the following command:\n\n```\ngit clone https://github.com/davidnwaneri/recdart.git\n```\n\n## Examples\n\nThis repository contains the following examples of recursion in Dart language:\n\n1. **[Palindrome](#palindrome):** A palindrome is a word, phrase, number, or sequence of characters that reads the same backward as forward. For example, \"racecar\".\n\n### Palindrome\n\n```dart\nbool isPalindrome(String input) {\n  if (input.length \u003c= 1) return true;\n\n  final firstChar = input.split('')[0];\n  final lastChar = input.split('')[input.length - 1];\n\n  if (firstChar == lastChar) {\n    return isPalindrome(input.substring(1, input.length - 1));\n  }\n  return false;\n}\n\n// Usage example\nprint(isPalindrome('racecar') // Output: true\nprint(isPalindrome('ketchup') // Output: false\n```\n\n\n## Contributing\n\nIf you would like to contribute to this repository, please fork the repository and create a pull request with your changes. We welcome contributions of all kinds, including bug fixes, new examples, and improvements to existing examples.\n\n## License\n\nThis repository is licensed under the MIT License. See the LICENSE file for more information.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidnwaneri%2Frecdart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidnwaneri%2Frecdart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidnwaneri%2Frecdart/lists"}