{"id":21948146,"url":"https://github.com/evolution-gaming/sstream","last_synced_at":"2025-04-23T00:16:53.859Z","repository":{"id":35773194,"uuid":"198260826","full_name":"evolution-gaming/sstream","owner":"evolution-gaming","description":"Stream","archived":false,"fork":false,"pushed_at":"2025-04-01T15:12:13.000Z","size":153,"stargazers_count":7,"open_issues_count":8,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-23T00:16:47.871Z","etag":null,"topics":["cats","cats-effect","scala","stream"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/evolution-gaming.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":"2019-07-22T16:14:38.000Z","updated_at":"2025-04-01T15:12:17.000Z","dependencies_parsed_at":"2023-11-09T10:24:32.902Z","dependency_job_id":"be82de90-5f0a-4bc2-89e6-938874728e37","html_url":"https://github.com/evolution-gaming/sstream","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fsstream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fsstream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fsstream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fsstream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evolution-gaming","download_url":"https://codeload.github.com/evolution-gaming/sstream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250343960,"owners_count":21415042,"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":["cats","cats-effect","scala","stream"],"created_at":"2024-11-29T05:12:11.330Z","updated_at":"2025-04-23T00:16:53.851Z","avatar_url":"https://github.com/evolution-gaming.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SStream\n[![Build Status](https://github.com/evolution-gaming/sstream/workflows/CI/badge.svg)](https://github.com/evolution-gaming/sstream/actions?query=workflow%3ACI)\n[![Coverage Status](https://coveralls.io/repos/evolution-gaming/sstream/badge.svg)](https://coveralls.io/r/evolution-gaming/sstream)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/6ceee024f5c94cfa814e95675c77f2a9)](https://app.codacy.com/gh/evolution-gaming/sstream/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade)\n[![Version](https://img.shields.io/badge/version-click-blue)](https://evolution.jfrog.io/artifactory/api/search/latestVersion?g=com.evolutiongaming\u0026a=sstream_2.13\u0026repos=public)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellowgreen.svg)](https://opensource.org/licenses/MIT)\n\n## Use case examples\n\n```scala\n  test(\"take\") {\n    Stream[Id].many(1, 2, 3).take(1).toList shouldEqual List(1)\n  }\n\n  test(\"first\") {\n    Stream[Id].single(0).first shouldEqual Some(0)\n  }\n\n  test(\"repeat\") {\n    Stream.repeat[Id, Int](0).take(3).length shouldEqual 3\n  }\n\n  test(\"collect\") {\n    Stream[Id].many(1, 2, 3).collect { case x if x \u003e= 2 =\u003e x + 1 }.toList shouldEqual List(3, 4)\n  }\n\n  test(\"zipWithIndex\") {\n    Stream.repeat[Id, Int](0).zipWithIndex.take(3).toList shouldEqual List((0, 0), (0, 1), (0, 2))\n  }\n```\n\n## Setup\n\n```scala\naddSbtPlugin(\"com.evolution\" % \"sbt-artifactory-plugin\" % \"0.0.2\")\n\nlibraryDependencies += \"com.evolutiongaming\" %% \"sstream\" % \"1.1.0\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolution-gaming%2Fsstream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevolution-gaming%2Fsstream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolution-gaming%2Fsstream/lists"}