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

docs: suggest to use ||| for readability #6

Open
ghostsquad opened this issue Jul 15, 2020 · 0 comments
Open

docs: suggest to use ||| for readability #6

ghostsquad opened this issue Jul 15, 2020 · 0 comments

Comments

@ghostsquad
Copy link

ghostsquad commented Jul 15, 2020

might be useful to suggest to use ||| syntax for readability of the description.

{
  '#array': d.fn(
    |||
      `array` takes a single argument of any type.
      If it is an array, it returns it, otherwise it is wrapped in an array.
    |||,
    [d.arg('x', d.T.any)]),
  array(x):: (if std.type(x) == "array" then x else [x]),
}
@ghostsquad ghostsquad changed the title suggest to use ||| for readability docs: suggest to use ||| for readability Jul 15, 2020
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