I’ve been working on a small project recently to teach myself Elm: a website that finds paths between Wikipedia articles. As an example, a path from “Buzz Lightyear” to “R2-D2” might be:
Buzz Lightyear → Lego → Star Wars → R2-D2
…meaning the “Buzz Lightyear” article links to the “Lego” article, which then links to “Star Wars”, and so on.
Other people have built similar things before, with this perhaps being the most impressive example, but I haven’t seen an Elm implementation yet (let me know if there is one!).
You can play with my version here:
And browse the code here:
This is the first time I’ve written anything in a purely functional language, so feedback on the code is definitely welcome! Have I done things in an idiomatic way, or are there nicer ways of modelling this kind of problem?
Also, any recommendations for how to nicely visualise the pathfinding process?