SkillAgentSearch skills...

StringBuffer

No description available

Install / Use

/learn @simon-reynolds/StringBuffer
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

StringBuffer

An F# computation expression for writing code with code


Builds

GitHub Actions | :---: | GitHub Actions Build History |

NuGet

Package | Stable | Prerelease --- | --- | --- StringBuffer | NuGet Badge | NuGet Badge


Using

Install the latest version from https://www.nuget.org/packages/StringBuffer/

Then use stringBuffer and indent to write your code that writes code.

stringBuffer {
    "let square x ="
    indent {
        "x * x"
    }
}

stringBuffer and indent can both be nested in each other and will correctly produce output indented as expected.

let namespaces = seq {
    "System"
    "System.IO"
}

let formattedCode = stringBuffer {
    namespaces |> Seq.map (fun ns -> "open " + ns)

    ""
    "module MyModule"
    indent {
        "let LifeUniverseAndEverything () ="
        indent {
            "42"
        }
    }
}
open System
open System.IO

module MyModule
    let LifeUniverseAndEverything () =
        42

Developing

Make sure the following requirements are installed on your system:

or

View on GitHub
GitHub Stars20
CategoryDevelopment
Updated1mo ago
Forks0

Languages

F#

Security Score

85/100

Audited on Feb 19, 2026

No findings