Skip to content

Handle passing functions as argument by value #1482

Closed
@CohenArthur

Description

@CohenArthur
fn takes_fn(a: i32, f: impl Fn(i32) -> i32) -> i32 {
    f(a)
}

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions