Skip to content

Use function factories #44

@rjake

Description

@rjake
sc_color <- function(hue, ...) {
  function(...) {
    sc_within(hue, ...)
  }
}

sc_red <- sc_color("red")
sc_yellow <- sc_color("yellow")

sc_red(sat = "dull")
sc_yellow(light = 1:3)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions