Why don't Swring structures have recursive values ββin Swift? Is this the time limit of the language or how is it intended?
I feel that the ability to declare a binary tree node as a structure with recursive types in it is the most natural implementation.
struct TreeNode<E>{ var leftNode:TreeNode<E> var rightNode:TreeNode<E> var element:E }
source share