Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option methods support #159

Open
kirillgarbar opened this issue Dec 20, 2023 · 0 comments
Open

Option methods support #159

kirillgarbar opened this issue Dec 20, 2023 · 0 comments

Comments

@kirillgarbar
Copy link
Member

Is your feature request related to a problem? Please describe.
It might be useful to use option methods such as isNone or isSome inside kernels since option types are supported.

Additional context
Use case example

let one =
    <@ fun (x: float32 option) (_: int option) ->
        let mutable res = 0
        match x with
        | Some _ -> res <- 1
        | None -> ()
        if res = 0 then None else Some res @>
let one =
    <@ fun (x: float32 option) (_: int option) ->
        if x.IsNone then None else Some 1 @>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant