https://hackage.haskell.org/package/copilot-language-4.3/docs/Copilot-Language-Operators-Temporal.html#v:drop
The elements must be realizable at the present time to be able to drop elements. For most kinds of streams, you cannot drop elements without prepending an equal or greater number of elements to them first, as it could result in undefined samples.
Since the document states that prepending 'equal' number of elements suffices, I expected the following code to compile
prependedStream::StreamBool
prependedStream = [True, True] ++ false
droppedStream::StreamBool
droppedStream =drop2 prependedStream
However, it fails to compile with the following error:
Copilot error: Drop index overflow!
Why is it that I'm not able to drop the exact same number of elements as I prepended?
Could it be a documentation issue or a bug?
https://hackage.haskell.org/package/copilot-language-4.3/docs/Copilot-Language-Operators-Temporal.html#v:drop
Since the document states that prepending 'equal' number of elements suffices, I expected the following code to compile
However, it fails to compile with the following error:
Why is it that I'm not able to drop the exact same number of elements as I prepended?
Could it be a documentation issue or a bug?