Skip to content

Active Patterns #119

@gusty

Description

@gusty

At the moment we have only one active recognizer: Parse and I'm not very happy with the name as it does exactly the opposite (maybe Parsed is a better name, or ToString or String given that's the inverse function).

But the goal of this issue is to compile a list of useful active patterns and discuss if it worth having them in F#+.

Here are some:

  • IgnoreCase for case insensitive string comparison
  • Date (y, m, d) to deconstruct a DateTime to date components. It could be overloaded to handle tuples.
  • Null check

(I might add more stuff to this list)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions