For ZipSerialM streams:
(<>) = Streamly.Prelude.serial
(*) = Streamly.Prelude.serial.zipWith id
Applicative evaluates the streams being zipped serially:
s1 = Stream.fromFoldable [1, 2]s2 = Stream.fromFoldable [3, 4]s3 = Stream.fromFoldable [5, 6]Stream.toList $ Stream.fromZipSerial $ (,,) <$> s1 <*> s2 <*> s3[(1,3,5),(2,4,6)]
Since: 0.2.0 (Streamly)
Constructors
ZipSerialMgetZipSerialM :: Stream m a
Instances16IsStream, Functor, Applicative, Foldable, Traversable, NFData1, …
IsStream ZipSerialMDefined in streamly-0.10.1 · Streamly.Internal.Data.Stream.IsStream.TypeMonad m => Functor (ZipSerialM m)Defined in streamly-0.10.1 · Streamly.Internal.Data.Stream.ZipMonad m => Applicative (ZipSerialM m)Defined in streamly-0.10.1 · Streamly.Internal.Data.Stream.Zip(Foldable m, Monad m) => Foldable (ZipSerialM m)Defined in streamly-0.10.1 · Streamly.Internal.Data.Stream.ZipTraversable (ZipSerialM Identity)Defined in streamly-0.10.1 · Streamly.Internal.Data.Stream.ZipNFData1 (ZipSerialM Identity)Defined in streamly-0.10.1 · Streamly.Internal.Data.Stream.ZipIsList (ZipSerialM Identity a)Defined in streamly-0.10.1 · Streamly.Internal.Data.Stream.ZipEq a => Eq (ZipSerialM Identity a)Defined in streamly-0.10.1 · Streamly.Internal.Data.Stream.ZipOrd a => Ord (ZipSerialM Identity a)Defined in streamly-0.10.1 · Streamly.Internal.Data.Stream.ZipRead a => Read (ZipSerialM Identity a)Defined in streamly-0.10.1 · Streamly.Internal.Data.Stream.ZipShow a => Show (ZipSerialM Identity a)Defined in streamly-0.10.1 · Streamly.Internal.Data.Stream.Zipa ~ Char => IsString (ZipSerialM Identity a)Defined in streamly-0.10.1 · Streamly.Internal.Data.Stream.ZipSemigroup (ZipSerialM m a)Defined in streamly-0.10.1 · Streamly.Internal.Data.Stream.ZipMonoid (ZipSerialM m a)Defined in streamly-0.10.1 · Streamly.Internal.Data.Stream.ZipNFData a => NFData (ZipSerialM Identity a)Defined in streamly-0.10.1 · Streamly.Internal.Data.Stream.Ziptype Item (ZipSerialM Identity a) = aDefined in streamly-0.10.1 · Streamly.Internal.Data.Stream.Zip