val outputListing: FullListing = //...
val inputListing: RawListing = //...
val save = new MemorySink[ListingResults] // MemorySink[A] extends Sink[Id,A] now
val processor = new ListingProcessor[Id](_ => Some(outputListing), save)
processor.processListing(Seq(inputListing))
save.last should beSome(Seq(outputListing))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment