std.contract.sketch

as:maybe

added in 3.0

(as:maybe v)

creates a maybe

as:optional

added in 3.0

(as:optional k)

creates an optional

closed

added in 3.0

(closed schema)

closes the map

fn-sym

added in 3.0

(fn-sym f)

gets function symbol

from-schema

added in 3.0

(from-schema schema)

sketch from schema

from-schema-map

added in 3.0

(from-schema-map m)

sketch from malli’s map syntax

func

macro

added in 3.0

(func args)

macro for constructing a func

func-form

added in 3.0

(func-form args)

constructs a func

func-invoke

added in 3.0

(func-invoke f data)

invokes the func

func-string

added in 3.0

(func-string f)

string for func

func?

added in 3.0

(func? x)

checks if instance is a func

lax

added in 3.0

(lax schema)(lax schema ks)

relaxes a map (optional keys and maybe vals)

maybe-string

added in 3.0

(maybe-string m)

string for maybe

maybe?

added in 3.0

(maybe? x)

checks if maybe type

norm

added in 3.0

(norm schema)(norm schema ks)

gets rid of optional keys

opened

added in 3.0

(opened schema)

opens the map

optional-string

added in 3.0

(optional-string m)

string for optional

optional?

added in 3.0

(optional? x)

checks if optional type

remove

added in 3.0

(remove schema ks)

removes a key from map

tighten

added in 3.0

(tighten schema)(tighten schema ks)

tightens a map (no optionals or maybes)

to-schema

added in 3.0

(to-schema x)

converts object to schema

to-schema-extend

multimethod

added in 3.0

extending schema conversion