Giter VIP home page Giter VIP logo

Comments (5)

LeoMobileDeveloper avatar LeoMobileDeveloper commented on July 18, 2024

@JH90iOS EventBus那篇文章么?

from blogs.

LeoMobileDeveloper avatar LeoMobileDeveloper commented on July 18, 2024

需要的是一个Key - Value Array的数据结构,字典只能存Key-Value的

from blogs.

JH90iOS avatar JH90iOS commented on July 18, 2024

嗯,是这篇文章,我明白这里需要是一个Key - Value Array的数据结构,我看到在你的代码中使用了双向链表来实现这种 Value Array 的数据结构,不过我发现这个双向链表中每一个节点都有一个 uniqueId 作为唯一标识,而且在例如删除操作中,也是先根据这个 uniqueId 在字典中查找到这个结点然后进行双向链表的相关操作,我不明白的是为什么不直接 用字典的数据结构,因为每一个结点对应一个唯一标识,为什么不能是 key - Muti Dictionary ,而是 key - LinkList

from blogs.

LeoMobileDeveloper avatar LeoMobileDeveloper commented on July 18, 2024

@JH90iOS 主要的原因是想保证先subscribe的先收到通知,这样就需要一个有序的数据结构,所以没用字典。

from blogs.

JH90iOS avatar JH90iOS commented on July 18, 2024

明白了,非常感谢!

from blogs.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.