showall

showall(x)

Similar to show, except shows all elements of arrays.

Examples

julia> showall([1, 2, 3, 4, 5])
[1, 2, 3, 4, 5]

julia> showall(["apple", "banana", "orange"])
["apple", "banana", "orange"]

julia> showall((x^2 for x in 1:5))
[1, 4, 9, 16, 25]

The showall function is similar to show, but it displays all elements of arrays or collections. It provides a concise representation of the entire collection. Here are some common examples of its use:

  1. Display all elements of an array:

    julia> showall([1, 2, 3, 4, 5])
    [1, 2, 3, 4, 5]
  2. Display all elements of a string array:

    julia> showall(["apple", "banana", "orange"])
    ["apple", "banana", "orange"]
  3. Display all elements of a generator expression:
    julia> showall((x^2 for x in 1:5))
    [1, 4, 9, 16, 25]

It is particularly useful when dealing with large arrays or collections, as it avoids truncating the output for readability.

See Also

:@printf, :@sprintf, display, displayable, dump, info, isprint, print, println, print_escaped, print_joined, print_shortest, print_unescaped, print_with_color, pushdisplay, redisplay, show, showall, showcompact, sprint, versioninfo,

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field
Details

Checking you are not a robot: