Skip to content

Function

Define function

Navi Stream's function definition is very similar to Navi, also support keyword arguments.

nvs

Call a function

Here is an example of calling the max function in [math] to calculate the maximum value of 5 and 10.

INFO

Checkout more Stdlib docs.

nvs

INFO

There have a little different with Navi's function call, in Navi Stream, we can call a function without () like Ruby, but in Navi, you must use ().

The following example calls the open function to get the opening price of the current period.

nvs

It same like:

nvs