diff options
author | cooldome <cdome@bk.ru> | 2019-08-31 18:23:54 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-08-31 19:23:54 +0200 |
commit | 2b565aad89587114148052eabdd430b923c21394 (patch) | |
tree | e5c70c7a771caabfd2143705e8c33f0010ed296e /changelog.md | |
parent | 9ae0dd611f77c4cd7122e6ac77e0278c1bafbbd7 (diff) | |
download | Nim-2b565aad89587114148052eabdd430b923c21394.tar.gz |
Support iterators returning lent T (#11938)
* lent iterators * rebase tests * update changelog * fix comments, more tests
Diffstat (limited to 'changelog.md')
-rw-r--r-- | changelog.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md index b7c2214c9..38bb412d0 100644 --- a/changelog.md +++ b/changelog.md @@ -61,6 +61,11 @@ type ## Language additions +- Inline iterators returning `lent T` types are now supported, similarly to iterators returning `var T`: +```nim +iterator myitems[T](x: openarray[T]): lent T +iterator mypairs[T](x: openarray[T]): tuple[idx: int, val: lent T] +``` ## Language changes |