Non-numerical use cases for functional programming?

前端 未结 18 2227
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-22 21:33

I just finished reading a book on scala. What strikes me is that every single example in the whole book was numerical in some form or another.

Like a lot of programm

18条回答
  •  死守一世寂寞
    2020-12-22 21:52

    Check "Purely functional data structures" (and here's the PhD thesis that inspired the book).

    They show how you can create standard data structures in purely functional (no side-effects) languages. You can then use them to program anything.

    Disclaimer: I'm pulling an Atwood here, I've barely read a couple of reviews of the book and skimmed over the thesis, it's on my toread list.

提交回复
热议问题