Documentation
API
Spec

Spec

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: Function}) => Specification
Examples