Skip to content

Support eliminating a variant with a record of functions with non-fixed codomain #12

Description

@mrkgnao

I'm not sure if there's something fundamental preventing the inclusion of a function of type

vmap 
  :: Short (NumCols p - 1) 
  => R (f :->: g) p -> V f p -> V g p

in sculls.

One might then use a record of functions like

funcs :: R (I :->: I) (Row0 .& "int" .= Int .& "string" .= String)
funcs = mkR 
  .* (A (\(I x) -> I (2 * x)) :: (I :->: I) "int" Int)
  .* (A (\(I x) -> I (reverse x)) :: (I :->: I) "string" String)

to eliminate a variant like V I (Row0 .& "int" .= Int .& "string" .= String).

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions