Created
March 16, 2024 17:57
-
-
Save zainab-ali/80489d0a7dbe805a521dd3724c207670 to your computer and use it in GitHub Desktop.
scala-cli script to test that aquascapes are generated properly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> using scala "3.4.0" | |
//> using lib "com.github.zainab-ali::aquascape:0.1.0" | |
import fs2.* | |
import cats.effect.* | |
import aquascape.* | |
object BasicScape extends AquascapeApp.Simple { | |
def stream(using Scape[IO]) = { | |
Stream(1, 2, 3) | |
.stage("Source") | |
.take(2) | |
.stage("take(2)") | |
.compile | |
.drain | |
.compileStage("compile.drain") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment