Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.

hpr3681 :: Rust 101 Episode 3: Functionally Insane

In this episode BlacKernel teaches you how to make functions and for loops in rust

<< First, < Previous, Latest >>

Hosted by BlacKernel on Monday 2022-09-12 is flagged as Explicit and is released under a CC-BY-SA license.
Tags: rust, for loop, for, match, functions, loops, usize, isize, programming, tutorial.

Listen in ogg, spx, or mp3 format. | Comments (0)

Part of the series: Programming 101

A series focusing on concepts and the basics of programming

In this episode BlacKernel is back! (Although a lot more loopy than I remember being while recording)

And teaching you how to make functions, for loops, and match statements in Rust.

Points covered in this episode:

  • isize and usize number types in rust
  • fn (function) declarations with arguments and return types
  • match statements both bare and part of variable assignment
  • for _ in 1..x loops. That is for loops over an iterator variable across a range of integers.


Show Transcript

Automatically generated using whisper

whisper --model tiny --language en hpr3681.wav

<< First, < Previous, Latest >>


Subscribe to the comments RSS feed.

<< First, < Previous, Latest >>

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Anti Spam Question: What does the P in HPR stand for ?
Are you a spammer →
Who hosted this show →
What does HPR mean to you ?