Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Here's a (web based) pure functional version of the game 'bomber man', the readme should answer your questions.

https://github.com/vmarquez/PureBomberMan



But that doesn't answer the GP's worry about lookup cost. The thing is, it is hard to keep direct references in a nested data structure (like a graph or tree) even in a language that supports direct references.

An example: I want to create a tree in which each node keeps a track of its children as well as its parent. AFAIK, it is impossible to keep track of both children and parent (with direct references) in an immutable data structure.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: