Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Fool's Enum

This prompt is designed to teach you how to declare an enumeration in FoolScript.

Setup

In the .github/prompts folder of your project, add a new file called fools-enum.prompt.md.

Usage

Example that will use the current language:

Terminal window
#file:fools-enum.prompt.md

Example that will use Python:

Terminal window
#file:fools-enum.prompt.md Python

Prompt

Provide a quick outline on how to declare an enumeration in the current language.
## Basic Enum
## Enum with Associated Values
## Enum Tricks
Begin your response with an empty markdown block. Add 3 backticks (```) before the response. For example:
```markdown
```
Response...