Squiggle logoSquiggle
API

Spec

Function Specifications.

Function specifications (Specs) are an experimental feature in Squiggle. They are used to specify the structure of functions and verify that they match that structure. They are used primarily as a tag for functions.

make

Create a specification.

Signatures
Spec.make({name: String, documentation: String, validate: Lambda}) => Specification
Examples

On this page