{"id":22618916,"url":"https://github.com/apparaomulpuri/readline","last_synced_at":"2025-03-29T01:28:40.477Z","repository":{"id":211440559,"uuid":"114333884","full_name":"ApparaoMulpuri/readLine","owner":"ApparaoMulpuri","description":"Explains you the usage of readLine function in Swift.","archived":false,"fork":false,"pushed_at":"2017-12-15T08:43:27.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T11:34:46.334Z","etag":null,"topics":["data","fromkeyboard","keyboard","reading","readline","swift"],"latest_commit_sha":null,"homepage":null,"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/ApparaoMulpuri.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}},"created_at":"2017-12-15T06:13:48.000Z","updated_at":"2017-12-15T06:40:07.000Z","dependencies_parsed_at":"2023-12-08T15:28:13.266Z","dependency_job_id":null,"html_url":"https://github.com/ApparaoMulpuri/readLine","commit_stats":null,"previous_names":["apparaomulpuri/readline"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApparaoMulpuri%2FreadLine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApparaoMulpuri%2FreadLine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApparaoMulpuri%2FreadLine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApparaoMulpuri%2FreadLine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ApparaoMulpuri","download_url":"https://codeload.github.com/ApparaoMulpuri/readLine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246125017,"owners_count":20727358,"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":["data","fromkeyboard","keyboard","reading","readline","swift"],"created_at":"2024-12-08T21:11:36.265Z","updated_at":"2025-03-29T01:28:40.453Z","avatar_url":"https://github.com/ApparaoMulpuri.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# readLine\nExplains you how to use the **readLine** function in Swift.\n\n\n1. #### Reading data from the Keyboard in Swift\n\n```\nlet input = readLine()\nif let input = input {\n    print(input) //Input will be printed out\n}\n```\n\n2. #### Reading Int from the keyboard\n\n```\nlet input = Int(readLine()!)\nif let input = input {\n    print(input) //Input integer will be printed out.\n}\n```\n\n3. #### Reading String from the keyboard\n\n```\nlet input = String(readLine()!)\nif let input = input {\n    print(input) //Input Stirng will be printed out.\n}\n```\n\n4. #### Reading data from the keyboard and convert that into an Array\n\n```\nlet input = readLine()\nif let input = input {\n    let numbersFromKeyboard = input.split(separator: \" \")\n    let numbers = numbersFromKeyboard.map { Int(String($0))! }\n    print(numbers)\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapparaomulpuri%2Freadline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapparaomulpuri%2Freadline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapparaomulpuri%2Freadline/lists"}