(Changed in version 2.8.0) collect
has changed. The previous behavior can be reproduced with toSeq
.
Truncated streams the chunks one by one until it reaches the height limit; then, it buffers up to one entire row worth of chunks to check whether it overshoots.
Truncated streams the chunks one by one until it reaches the height limit; then, it buffers up to one entire row worth of chunks to check whether it overshoots. If it overshoots, it discards the chunks and prints "..." instead. If not, the buffered chunks get printed all at once.
(truncated: MonadOps[String]).filter(p)
(truncated: MonadOps[String]).flatMap(f)
(truncated: MonadOps[String]).map(f)
(truncated: MonadOps[String]).withFilter(p)
(Since version ) see corresponding Javadoc for more information.
Wraps an input iterator of Strings, and produces the same Strings but truncated once the wrapped-at-width text reaches beyond a certain height