Data structures as functions? (Priority Queue)

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