fn: layer
[contents]

Contents

Syntax

The syntax for layer calls is:

f++:  
layer()
layer(variable)

n++:  
@layer()
@layer(variable)

Description

The layer function either takes zero parameters and returns the current layer for variables, or a single variable or function as a parameter and returns the layer at which the variable or function is defined.

f++ example

Example of layer being used with f++:

:=(int, a)
console(layer(a))

n++ example

Example of layer being used with n++:

@:=(int, a)
@console(@layer(a))