Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
seborama authored May 6, 2024
1 parent 526cf51 commit e1bb0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ A function is defined as a Go type: `type FunctionalValue func(...Value) Value`

Function names are case-insensitive.

A function can optionally accept one or more **space-separated** arguments, but it must return a single `Value`.
A **function** can optionally accept one or more **space-separated arguments**, but it must return a single `Value`.

It should be noted that a `MultiValue` type is available that can hold multiple `Value` elements. A function can use `MultiValue` as its return type to effectively return multiple `Value`'s. Of course, as `MultiValue` is a `Value` type, functions can also accept it as part of their argument(s). Refer to the test `TestMultiValueFunctions`, for an example.

Expand Down

0 comments on commit e1bb0d4

Please sign in to comment.