<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>迭代器 on PlumePHP</title><link>https://plumephp.com/tags/%E8%BF%AD%E4%BB%A3%E5%99%A8/</link><description>Recent content in 迭代器 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Fri, 30 Aug 2024 15:33:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/%E8%BF%AD%E4%BB%A3%E5%99%A8/index.xml" rel="self" type="application/rss+xml"/><item><title>Go 1.23 迭代器入门：range over func 能解决什么问题</title><link>https://plumephp.com/go-iterators-range-over-func-2024/</link><pubDate>Fri, 30 Aug 2024 15:33:00 +0800</pubDate><guid>https://plumephp.com/go-iterators-range-over-func-2024/</guid><description>&lt;p&gt;Go 1.23 让 &lt;code&gt;range&lt;/code&gt; 可以遍历函数形式的迭代器。对初学者来说，这个特性第一眼可能有点陌生：既然我们已经能遍历切片、map、channel，为什么还需要遍历函数？答案通常和“惰性生成”和“避免一次性装进内存”有关。&lt;/p&gt;</description></item></channel></rss>