gleam-lang / website

🏡 Gleam's website and guide

Home Page:https://gleam.run

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add links to stdlib in language tour where applicable

JohnBjrk opened this issue · comments

Some chapters in the book about types have obvious counterparts in the stdlib. It would be nice to provide a link for diving deeper into how the stdlib can be utilised when working with these types.

For example the chapter on Result already have a paragraph mentioning the stdlib so it would be easy to add something like this:

The standard library gleam/result module contains helpful functions for
working with the Result type, make good use of them!

Stdlib references

The exact format can be discussed but if would be nice if it was somewhat consistent through the book.

Some other chapters that could get a link to stdlib are:

  • Bit String
  • Bool
  • Functions
  • Ints and floats
  • Lists (maybe link to iterator and set also)
  • Strings

Sounds good!