From 11f34f933fe496e8fc99fc9ebe890f569c48992d Mon Sep 17 00:00:00 2001 From: Teascade Date: Sat, 26 Aug 2017 23:59:29 +0000 Subject: [PATCH] Add mini-descriptions to the keywords --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 58a5d34..bbe49b8 100644 --- a/README.md +++ b/README.md @@ -187,17 +187,17 @@ The following keywords are specified to execute an action. - [`let`](#let) initializes a new variable. - [`if`](#if) enters the scope once if the condition is met. -- [`else`](#else) +- [`else`](#else) enters the scope if the if before failed. - [`def`](#def) defines a new function. - [`while`](#while) functions like `if`, but enters the scope as long as the condition is met. - [`for`](#for) initializes a scope which will be ran a number of times specified after the `for`. -- [`break`](#break) -- [`continue`](#continue) -- [`unwrap`](#unwrap) -- [`some`](#some) -- [`exists`](#exists) -- [`empty`](#empty) -- [`as`](#as) +- [`break`](#break) breaks the loop prematurely. +- [`continue`](#continue) skips the rest of the loop's body for a new iteration. +- [`unwrap`](#unwrap) unwraps an optional-type variable. +- [`some`](#some) wraps a variable into an optional. +- [`exists`](#exists) tests weather an optional is not empty. +- [`empty`](#empty) value to set in an optional variable. +- [`as`](#as) casts the leftside value into the type on the rightside of this keyword. - [All operators](#operators) are also somewhat considered as keywords. #### `let`