• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Use wildcards where appropriate (snippets, 17cfb75)

Created 9/16/2007, updated 3/5/2024
  • snippets

Use the wildcard operator (_) in pattern matches for parameters which aren't actually used in the calculation. This makes it clearer at a glance which values we don't care about.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Solution for Exercise 1.20 (snippets, 01c89ee)
Set Garbage Collection to "required" (buildtools, 6df5a68) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).