changelog entry
This commit is contained in:
parent
016e0b1aac
commit
f9bc4d014a
2 changed files with 3 additions and 2 deletions
|
|
@ -25,6 +25,8 @@
|
|||
- Added `split`, `splitWhitespace`, `size`, `alignLeft`, `align`,
|
||||
`strip`, `repeat` procs and iterators to `unicode.nim`.
|
||||
|
||||
- Added `or` for `NimNode` in `macros`.
|
||||
|
||||
### Library changes
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -179,8 +179,7 @@ proc `[]=`*(n: NimNode, i: BackwardsIndex, child: NimNode) =
|
|||
template `or`*(x, y: NimNode): NimNode =
|
||||
## Evaluate ``x`` and when it is not an empty node, return
|
||||
## it. Otherwise evaluate to ``y``. Can be used to chain several
|
||||
## expressions that evaluates to the first expression that is not
|
||||
## empty.
|
||||
## expressions to get the first expression that is not empty.
|
||||
##
|
||||
## .. code-block:: nim
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue