roc-lang / book-of-examples

Software Design by Example in Roc
Other
23 stars 15 forks source link

Skeletal draft of PRNG chapter #52

Closed nathanielknight closed 3 weeks ago

nathanielknight commented 1 month ago

This PR contains a skeletal draft of the PRNG chapter. My hope is that it's fleshed out enough for:

I'd also very much appreciate any feedback on the code. I'm new to Roc and don't have much occasion for functional programming in my day job, so if I've implementing something in a conspicuously un-idiomatic way it's almost certainly out of ignorance and not for a deep editorial reason; please let me know. 😅

As it stands, the outline is for a chapter that would contain:

Possible extensions (depending on space, what's covered elsewhere, etc.) include:

gvwilson commented 4 weeks ago

I realize this is a work in progress, but may I merge it as-is so that I have some material when I start rearranging for order?

nathanielknight commented 4 weeks ago

Absolutely; I've been picking away at some prose, but it would be great to have a better idea of where this chapter will appear.