Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, ], }, ), body: Map( Map { recursive: true, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertMsg", span: Span { start: Position { line: 19, column: 3, }, end: Position { line: 19, column: 12, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pred", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "msg", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "pred", span: Span { start: Position { line: 20, column: 5, }, end: Position { line: 20, column: 9, }, }, }, ), operator: LogicalOr, right: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 20, column: 13, }, end: Position { line: 20, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "throw", span: Span { start: Position { line: 20, column: 22, }, end: Position { line: 20, column: 27, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "msg", span: Span { start: Position { line: 20, column: 28, }, end: Position { line: 20, column: 31, }, }, }, ), ], }, ), }, ), span: Span { start: Position { line: 19, column: 21, }, end: Position { line: 20, column: 31, }, }, }, ), span: Span { start: Position { line: 19, column: 15, }, end: Position { line: 20, column: 31, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertOneOf", span: Span { start: Position { line: 36, column: 3, }, end: Position { line: 36, column: 14, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "val", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "xs", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "assertMsg", span: Span { start: Position { line: 36, column: 32, }, end: Position { line: 36, column: 41, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 37, column: 6, }, end: Position { line: 37, column: 9, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "elem", span: Span { start: Position { line: 37, column: 10, }, end: Position { line: 37, column: 14, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "val", span: Span { start: Position { line: 37, column: 15, }, end: Position { line: 37, column: 18, }, }, }, ), Identifier( Identifier { id: "xs", span: Span { start: Position { line: 37, column: 19, }, end: Position { line: 37, column: 21, }, }, }, ), ], }, ), String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 38, column: 8, }, end: Position { line: 38, column: 12, }, }, }, ), }, ), Raw( PartRaw { content: " must be one of ", span: Span { start: Position { line: 38, column: 6, }, end: Position { line: 38, column: 29, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 39, column: 7, }, end: Position { line: 39, column: 10, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "generators", span: Span { start: Position { line: 39, column: 11, }, end: Position { line: 39, column: 21, }, }, }, ), Raw( PartRaw { content: "toPretty", span: Span { start: Position { line: 39, column: 22, }, end: Position { line: 39, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 39, column: 31, }, end: Position { line: 39, column: 33, }, }, }, ), Identifier( Identifier { id: "xs", span: Span { start: Position { line: 39, column: 34, }, end: Position { line: 39, column: 36, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: ", but is: ", span: Span { start: Position { line: 38, column: 6, }, end: Position { line: 39, column: 47, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 40, column: 9, }, end: Position { line: 40, column: 12, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "generators", span: Span { start: Position { line: 40, column: 13, }, end: Position { line: 40, column: 23, }, }, }, ), Raw( PartRaw { content: "toPretty", span: Span { start: Position { line: 40, column: 24, }, end: Position { line: 40, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 40, column: 33, }, end: Position { line: 40, column: 35, }, }, }, ), Identifier( Identifier { id: "val", span: Span { start: Position { line: 40, column: 36, }, end: Position { line: 40, column: 39, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 38, column: 5, }, end: Position { line: 40, column: 41, }, }, }, ), ], }, ), span: Span { start: Position { line: 36, column: 28, }, end: Position { line: 40, column: 41, }, }, }, ), span: Span { start: Position { line: 36, column: 23, }, end: Position { line: 40, column: 41, }, }, }, ), span: Span { start: Position { line: 36, column: 17, }, end: Position { line: 40, column: 41, }, }, }, ), }, ), ], span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 42, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 42, column: 2, }, }, }, )