Algosim documentation: AsSingleLine

AsSingleLine

Returns a pretty-printed single-line textual representation of an object.

Syntax

Description

If X is any object, then AsSingleLine(X) returns a pretty-printed single-line textual representation of X.

Most formatting directives are taken into account. Large objects are typically truncated according to the current limits.

Examples

AsSingleLine(SetDigitGrouping(1561230, 3))
1 561 230
AsSingleLine(IdentityMatrix(4))
((1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1))
AsSingleLine('("dog", "cat", "rat", "rabbit"))
(dog, cat, rat, rabbit)
AsSingleLine(date())
(year: 2020, month: August, day: 23)
AsSingleLine(IdentityMatrix(10)\5)
((1, 0, 0, 0, 0, …), (0, 1, 0, 0, 0, …), (0, 0, 1, 0, 0, …), (0, 0, 0, 1, 0, …), (0, 0, 0, 0, 1, …), …)

See also