# Data structures as functions? (Priority Queue)

**URL:** <https://forums.swift.org/t/data-structures-as-functions-priority-queue/41007>\
**Category:** Algorithms\
**Created:** [October 8, 2020, 12:04pm UTC](https://forums.swift.org/t/data-structures-as-functions-priority-queue/41007 "2020-10-08T12:04:14Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![rumnat](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/rumnat/32/7823_2.png) [@rumnat](https://forums.swift.org/u/rumnat)\
**Post date:** [October 10, 2020, 10:33am UTC](https://forums.swift.org/t/data-structures-as-functions-priority-queue/41007/7 "2020-10-10T10:33:22Z")

</div>

So why an open-sourced DataStructures package can't be introduced along with Algorithms? Swift is so poor in terms of data structure. The basic ones should be added at least, especially if Swift is trying to be extended to more than Apple ecosystem

---

_[View the full topic](https://forums.swift.org/t/data-structures-as-functions-priority-queue/41007)._
