---
title: "Discussion on \"F# tips weekly #2: Single case pattern match\" | Hashnode"
description: "Discussion on \"F# tips weekly #2: Single case pattern match\". Every F# programmer is likely familiar with pattern matching using the match keyword, as illustrated below:\nmatch x with\n| Some 0 -> \"Zero\"\n| Some n when n > 0 -> \"Positive\"\n| Some n when n < 0 -> \"Negative\"\n| None -> \"Unknown\"\n\nHowever, a less well-..."
url: "https://hashnode.com/posts/f-tips-weekly-2-single-case-pattern-match/65a8ca42ed86aa0222a99544"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [F# tips weekly #2: Single case pattern match](https://jindraivanek.hashnode.dev/f-tips-weekly-2-single-case-pattern-match?utm_source=hashnode&utm_medium=feed)

Every F# programmer is likely familiar with pattern matching using the match keyword, as illustrated below: match x with | Some 0 -> "Zero" | Some n when n > 0 -> "Positive" | Some n when n < 0 -> "Negative" | None -> "Unknown" However, a less well-...

Jan 18, 2024 · 2 min read · jindraivanek.hashnode.dev  
Read the article

-   [#fsharp](https://hashnode.com/tag/fsharp)
-   [#tips](https://hashnode.com/tag/tips)
-   [#pattern-matching](https://hashnode.com/tag/pattern-matching)

## Written by

[Jindřich Ivánek](https://hashnode.com/@jindraivanek)

@jindraivanek · Prague, Czech Republic

  
[View profile](https://hashnode.com/@jindraivanek)

F# developer

Software developer focused mainly on F#, with a passion for functional programming, problem solving, efficient algorithms and programming languages. I have a strong computer science background, focused mainly in graph theory and graph algorithms; also was intrigued by data structures, complexity, and computability theory. Experienced with backend F# programming. I worked with mathematical optimization (mixed integer programming) and use of statistical methods as well. I contributed to several open source F# projects, mostly around developer tooling.

## Responses 1

Markdown supported · ⌘↵ to post

[David Neale](https://hashnode.com/@realparadyne)

[Jan 25, 2024](https://hashnode.com/posts/f-tips-weekly-2-single-case-pattern-match/65a8ca42ed86aa0222a99544/comment/65b27b0bea7e349c13ef215d)

type MultipleOptions = | Thingys of string \* int | Wotsits of int

let multiInputMultiply (MultipleOptions.Thingys (\_, v) | MultipleOptions.Wotsits v) = v \* 42

let r = multiInputMultiply (Thingys ("hey!", 88)) let s = multiInputMultiply (Wotsits 44)

[Christian Steinert](https://hashnode.com/@ChrSt)

[Jan 20, 2024](https://hashnode.com/posts/f-tips-weekly-2-single-case-pattern-match/65a8ca42ed86aa0222a99544/comment/65abcf672fe70a74dbb6d4e9)

Great series. Looking forward to more!

[Jindřich Ivánek](https://hashnode.com/@jindraivanek)

[Jan 20, 2024](https://hashnode.com/posts/f-tips-weekly-2-single-case-pattern-match/65a8ca42ed86aa0222a99544/comment/65abcf672fe70a74dbb6d4e9#reply-65ac0f1ebf9e48ab6f9e346c)

Thanks!
