Skip to content

view, views

view

Expression defining a view

view x    view[x]

Where x is the name of a view as a symbol, returns the expression defining x as a string. The string is the source text of the definition, including any trailing comment.

q)/ define dependency v
q)v::2+a*3
q)a:5
q)v
17
q)view `v                         / view the dependency expression
"2+a*3"

views

List views defined in the default namespace

views[]

Returns a sorted list of the views currently defined in the default namespace.

q)w::b*10
q)v::2+a*3
q)views[]
`s#`v`w

value, Metadata

Q for Mortals 4.11 Views