fave77 / Mathball

A JavaScript library for Competitive Programming
https://fave77.github.io/Mathball-Docs/
MIT License
99 stars 49 forks source link

Implement 'M.find()' #109

Closed fave77 closed 5 years ago

fave77 commented 5 years ago

Do the checklist before filing the issue:

NOTE: Provide a clear and concise description of the feature that needs to be added! Or if its a bug, then provide the necessary steps to reproduce it along with screenshots.

/ OR /

M.find('factorial')(7); / 5040 / M.find('bell')(5); / 52 /

- Implementation:
  - Inside the module **find**, provide an _index.js_:
  ```js
  module.exports = arg => {
    /* first validate the argument here ... */
   /* return the corresponding function */
    return require(`../${arg}`).find;
  };

[NOTE: M.factorial() will be deprecated after resolving this issue and similarly, within the next few weeks, we're gonna migrate to M.find() for finding all nth-number modules. Do not change any other nth number module for now, just stick with factorial. A separate issue will be opened for that once this one gets successfully resolved.]

Manvityagi commented 5 years ago

Can I work on this? @pbiswas101

fave77 commented 5 years ago

@Manvityagi You're assigned!