Resources in general

We start with a simple example in pseudo-code. Then we give some general theory and we conclude with a more extended example in Rust.