{"id":24517356,"url":"https://github.com/sambhav2612/scala","last_synced_at":"2025-03-15T11:09:49.808Z","repository":{"id":92678596,"uuid":"133070550","full_name":"sambhav2612/scala","owner":"sambhav2612","description":null,"archived":false,"fork":false,"pushed_at":"2018-05-11T19:04:25.000Z","size":145,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T01:36:28.491Z","etag":null,"topics":["scala"],"latest_commit_sha":null,"homepage":null,"language":"XSLT","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sambhav2612.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":"2018-05-11T17:42:24.000Z","updated_at":"2021-01-04T17:49:32.000Z","dependencies_parsed_at":"2023-03-09T14:00:20.647Z","dependency_job_id":null,"html_url":"https://github.com/sambhav2612/scala","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/sambhav2612%2Fscala","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambhav2612%2Fscala/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambhav2612%2Fscala/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambhav2612%2Fscala/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sambhav2612","download_url":"https://codeload.github.com/sambhav2612/scala/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243719399,"owners_count":20336607,"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":["scala"],"created_at":"2025-01-22T01:33:25.239Z","updated_at":"2025-03-15T11:09:49.771Z","avatar_url":"https://github.com/sambhav2612.png","language":"XSLT","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scala\n\nRun scale console by typing `sbt console` to run commands like Python IDLE.\n\n## Data Types\n\n- Int (32-bit)\n- Double (64-bit)\n- Boolean (t/f)\n- String (text)\n\n## Notes\n\n- Infix expressions can be used to remove `.` and `()` from compact expressions while keeping the answer and solutions intact throughout. For example:\n\n```scala\n1.to(10) == 1 to 10\n```\n\n- `def` vs `val`: In `val`, the right hand side is evaluated as soon as it is reached upon and the value is referred to instead of variable. However, in `def` each time evaluation is done. \n\n- Functions are defined by sort of Python syntax:\n\n```scala\ndef myFunction(variableName: dataType) = or : doSomethingHere\n```\n\nFuntion argumanets are evaluated from left to right.\n\n### Outputs\n\n**Ch #1: Terms and Types:**\n\n```scala\nscala\u003e 16.toHexString\nres0: String = 10\n\nscala\u003e \"bar\".take(2)\nres1: String = ba\n\nscala\u003e (0 until 10).contains(10)\nres2: Boolean = false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambhav2612%2Fscala","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsambhav2612%2Fscala","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambhav2612%2Fscala/lists"}