Hacker News new | ask | show | jobs
by copper 5709 days ago
I think I understand that, but without actually writing it out, it's going to be impossible to test.

The types I was talking about go as: type Context a b = (Adj b, Node, a, Adj b) type Adj b = [(b, Node)]

It definitely allows traversal, and adding nodes seems to be possible, too (judging from the api, of course, it ought to be :)

1 comments

From the types you give, I can't see how it works. Would you please elaborate?