Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "config", default: None, }, ], }, ), body: LetIn( LetIn { bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "lib", span: Span { start: Position { line: 4, column: 12, }, end: Position { line: 4, column: 15, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "types", span: Span { start: Position { line: 4, column: 17, }, end: Position { line: 4, column: 22, }, }, }, ), ], span: Span { start: Position { line: 3, column: 4, }, end: Position { line: 4, column: 23, }, }, }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "fun", span: Span { start: Position { line: 7, column: 5, }, end: Position { line: 7, column: 8, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 7, column: 11, }, end: Position { line: 7, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkOption", span: Span { start: Position { line: 7, column: 15, }, end: Position { line: 7, column: 23, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 8, column: 7, }, end: Position { line: 8, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 8, column: 14, }, end: Position { line: 8, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "functionTo", span: Span { start: Position { line: 8, column: 20, }, end: Position { line: 8, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 8, column: 31, }, end: Position { line: 8, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 8, column: 37, }, end: Position { line: 8, column: 40, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 7, column: 24, }, end: Position { line: 9, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "result", span: Span { start: Position { line: 11, column: 5, }, end: Position { line: 11, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 11, column: 14, }, end: Position { line: 11, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkOption", span: Span { start: Position { line: 11, column: 18, }, end: Position { line: 11, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 12, column: 7, }, end: Position { line: 12, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 12, column: 14, }, end: Position { line: 12, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 12, column: 20, }, end: Position { line: 12, column: 23, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 13, column: 7, }, end: Position { line: 13, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 13, column: 17, }, end: Position { line: 13, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "fun", span: Span { start: Position { line: 13, column: 24, }, end: Position { line: 13, column: 27, }, }, }, ), ], default: None, }, ), arguments: [ Integer( Integer { value: "0", span: Span { start: Position { line: 13, column: 28, }, end: Position { line: 13, column: 29, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 11, column: 27, }, end: Position { line: 14, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 6, column: 13, }, end: Position { line: 15, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 17, column: 3, }, end: Position { line: 17, column: 9, }, }, }, ), Raw( PartRaw { content: "fun", span: Span { start: Position { line: 17, column: 10, }, end: Position { line: 17, column: 13, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "input", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "input", span: Span { start: Position { line: 17, column: 23, }, end: Position { line: 17, column: 28, }, }, }, ), operator: Addition, right: Integer( Integer { value: "1", span: Span { start: Position { line: 17, column: 31, }, end: Position { line: 17, column: 32, }, }, }, ), }, ), span: Span { start: Position { line: 17, column: 16, }, end: Position { line: 17, column: 32, }, }, }, ), }, ), ], span: Span { start: Position { line: 5, column: 4, }, end: Position { line: 18, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 18, column: 2, }, }, }, ), span: Span { start: Position { line: 2, column: 1, }, end: Position { line: 18, column: 2, }, }, }, )