Skip to content

view, views

view

Expression defining a view

view x    view[x]

Where x is a view (by reference), returns the expression defining x.

q)v::2+a*3                        / define dependency v
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

Metadata
Views
Q for Mortals ยง4.11 Alias