print.flexseq: Print a flexseq

View source: R/30-api-flexseq-print.R

print.flexseqR Documentation

Print a flexseq

Description

Print a flexseq

Usage

## S3 method for class 'flexseq'
print(x, max_elements = 4L, show_custom_monoids = FALSE, ...)

Arguments

x

A flexseq.

max_elements

Maximum number of elements shown in preview (head + tail).

show_custom_monoids

Logical; show attached non-default monoids and their root cached measures.

...

Passed through to per-element print().

Value

The input x, returned invisibly. Called for its side effect of printing a formatted preview of the sequence to the console.

Examples

x <- as_flexseq(setNames(as.list(1:6), letters[1:6]))
print(x, max_elements = 4)

y <- as_flexseq(as.list(1:6))
print(y, max_elements = 3)

Immutables documentation built on April 29, 2026, 1:06 a.m.