Skip to content

Handle passing functions as argument by reference #1481

@CohenArthur

Description

@CohenArthur
fn takes_fn_ref(a: i32, f: &dyn Fn(i32) -> i32) -> i32 {
    f(a)
}

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions