Like the title says what is the intuition behind recursive algos with streams like: and How do they unfold? What is the base case for such algos ...
Like the title says what is the intuition behind recursive algos with streams like: and How do they unfold? What is the base case for such algos ...
I am trying to stream a zip file. The following chunk of code prints line by line as expected: But this one doesn't do anyting (it doesn't even ex ...
I want to generate multiple sentences using Stream. What I have now is I can generate 1 Sentences. This is the result I have so far Now if I wan ...
I'm reading a very large number of records sequentially from database API one page at a time (with unknown number of records per page) via call to def ...
I have started studying Scala on Coursera and have some question on squareRootGuess implementation as follow I am trying to implement criteria to fil ...
My scala-play api provides endpoints to return a file as a stream via the Ok.chunked-function. I now want to be able to allow the download of multipl ...
I'm using Scala 2.13.1 and evaluate my examples in a worksheet. At first, I define two functions that return the range of a to (z-1) as a stream or r ...
In Martin Odersky’s book “Programming in Scala” there is an example of computing the Fibonacci sequence starting with 2 numbers passed as arguments to ...
When operating Kotlin sequences with functional APIs such as map, flatMap, +, etc., are computed intermediate results cached so upon second evaluation ...
I'm new in apache flink. I have one flink scala project that consume data from kafka cluster and I need to pass the stream result as parameter to cons ...
The problem is simple: Convert a stream of elements into a stream of streams of those elements where the first element is the original stream, the sec ...
Im new to scala and im following the book "FP in Scala". Right now i am writing an unfold function for the Stream datatype, which i am recreating. The ...
How can I find two successive and same values in a Stream and return this "duplicate-value": For instance Stream(1, 2, 4, 3, 5, 5, 2, 2) would resu ...
I'm trying to move from F# to Scala. In F#, we can easily create a seq with computation expression or monad. For example: I read about scala Stream ...
how to remove the filtered lines from the current streaming file using fs2 and get the count of filtered lines as the return type? ex: If the old.txt ...
Just for testing purposes I wanted to compute lazily 2 elements: But running this code does not yield the desired result. The values seem to show u ...
I have written Kafka stream program using Scala and executing in Spark standalone cluster. Code works fine in my local. I have done Kafka , Cassandra ...
I am reading a message from Kafka topic which has multiple partitions. While reading from message no issue, while Committing the offset range to Kafka ...
I am reading messages from Kafka using Spark Kafka direct streaming. I want to implement zero message loss and after restarts spark, it has to read th ...
I have am trying something in scala worksheet in eclipse. This is not showing any output , and doesn't show any error or warning either. I am tryin ...