sequences now integrated into the kernel

0 views
Skip to first unread message

William la Forge

unread,
Dec 15, 2009, 7:48:16 AM12/15/09
to AgileWikiDevelopers
Sequences are now integrated into the kernel. Some things have been sped up and other things are just easier. Consider the following code taken from ContainerComponent:

    def deleteAll {
      val it = iterator
      while (it.hasNext) {
        val name = it.next
        delete(name)
      }
    }

This could normally would not work, as the delete removes one of the items being iterated over. But iterator is implemented over a sequence rather than directly over the container, and it works just fine!

Next up: Enhance the container API to support b-trees. This needs to be done before Naji starts implementing KernelBTreeContainer and BTreeContainer.

Bill
Reply all
Reply to author
Forward
0 new messages