Comments (5)
@JH90iOS EventBus那篇文章么?
from blogs.
需要的是一个Key - Value Array的数据结构,字典只能存Key-Value的
from blogs.
嗯,是这篇文章,我明白这里需要是一个Key - Value Array的数据结构,我看到在你的代码中使用了双向链表来实现这种 Value Array 的数据结构,不过我发现这个双向链表中每一个节点都有一个 uniqueId 作为唯一标识,而且在例如删除操作中,也是先根据这个 uniqueId 在字典中查找到这个结点然后进行双向链表的相关操作,我不明白的是为什么不直接 用字典的数据结构,因为每一个结点对应一个唯一标识,为什么不能是 key - Muti Dictionary ,而是 key - LinkList
from blogs.
@JH90iOS 主要的原因是想保证先subscribe的先收到通知,这样就需要一个有序的数据结构,所以没用字典。
from blogs.
明白了,非常感谢!
from blogs.
Related Issues (18)
- Watch OS5 Beta踩坑记录
- Xcode11上传App Store 卡在Authenticating with App Store,报错App Store Connect Operation Error HOT 2
- 你好,请教个内购问题 HOT 4
- 你好 , 请教一个Server端票据验证结果字段与首次订阅票据验证结果字段不一致问题??? HOT 1
- 深入理解arc中有个疑问想请教 HOT 2
- 关于clang的解释
- 文章勘误 HOT 1
- UIResponder+QTEventBus
- Symbol地址不连续疑问🤔️ HOT 1
- 你好,在《深入浅出iOS编译》有个疑惑,这里LLVM LR,是书写错误吗? HOT 1
- 求教 HOT 1
- 关于 objc_msgSend 请教 HOT 1
- 内推 HOT 10
- 避免swift库对外暴露 HOT 1
- 深入理解ARC.md 这章不准确的地方 HOT 1
- LLVM命名源自Low Level Virtual Machine 勘误 HOT 1
- 自定义 module 的 framework build 后, 并不会包含 module 中的代码 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blogs.