Function writer()

← Back to Module standardio



Module standardio → writer()

Description

Dump a value (write recursively). This function is useful for debugging

writer(value)


Parameters


Return Value


Usage Example

a = [1, 2, 3]
b = {id: "A23", name: "Clara"}
c = 23
d = "Hello"
 
writer(a)
writer(b)
writer(c)
writer(d)
 
' Output:
' array(
'     [0] = 1
'     [1] = 2
'     [2] = 3
' )
' object(
'     .id = "A23"
'     .name = "Clara"
' )
' 23
' "Hello"