ios - Do 和 Map 有什么区别?
问题描述
do
运营商和运营商有什么区别map
?
似乎是一样的。我正在学习 RxSwift。
请检查 do 和 map 的大理石图。
解决方案
除了 SPatel 提到的,
do: 不会修改发出的元素,而只是传递它们并且对实际订阅没有影响。
然而
map:在发送到实际订阅之前转换序列的每个值
推荐阅读
- python - 在python中计算每个句子的单词
- java - 如何在 UML 中表示双向关联?
- c - 在现代系统上编译旧版本的 gcc
- c# - RavenDB PeriodicExport 错误“RequestEntityTooLarge”
- c++ - BOOST C++ 获取线串的旋转或方向
- php - 使用 Mike42/Escpos-php 库将 PDF 文件打印到网络 POS 打印机
- typescript - 有没有办法使用带有可选键的打字稿界面,然后具体化键在那里?
- android - 安卓后台线程控制涂鸦蓝牙设备
- reactjs - 重新加载它重定向到电子反应中的组件js文件,但从侧边栏它工作正常
- c# - 明确定义时无法捕获 NullReferenceException