Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Functions page #1465

Merged
merged 1 commit into from Aug 9, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -8,6 +8,8 @@ A function can be [annotated](/ride/annotations.md).

There are multiple [built-in functions](/ride/built-in-functions/built-in-functions.md) in RIDE.

When declaring a function to the right of the "=" sign must be an [expression](/ride/expression.md). The value of the function is the expression result.

## Examples

Definition of the function with no parameters that returns an integer:
@@ -8,6 +8,8 @@

В RIDE есть множество [встроенных функций](/ride/built-in-functions.md).

При объявлении функции справа от знака "=" должно находиться [выражение](/ride/expression.md). Значение функции — [результат выражения](/ride/expression#expression-result.md).

## Примеры

Определение функции без параметров, которая возвращает целое число:
@@ -24,4 +26,4 @@ func main() = {
func main(amount: Int, name: String) = {
throw()
}
```
```
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.