Skip to content

Add Readtable.from and Readtable.of #6

Description

@gabejohnson

Readtable.from :: Array<ReadtableEntry> -> Readtable and Readtable.of :: ReadtableEntry -> Readtable

Readtable.from([{
  key: '.',
  action(...) { ... }
}, {
   key: '/',
   action(...) { ... }
}]);

Readtable.of({ key: '?', action(...) { ... } });

If the signature of of was any -> Readtable instead, we could be https://github.com/fantasyland/fantasy-land#applicative compliant assuming the other required specifications were implemented.

Not sure of the utility of map and ap would be though.

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