writer()
Dump a value (write recursively). This function is useful for debugging
writer(value)
value
(any) — A value to be dumped
boolean
— Always returns true
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"