Skip to content

Option methods support #159

Description

@kirillgarbar

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 @>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions