ocaml.org icon indicating copy to clipboard operation
ocaml.org copied to clipboard

Turn exercise 007 into practice

Open cuihtlauac opened this issue 11 months ago • 8 comments

Extract the OCaml code from the markdown file corresponding to this exercise. The file is: data/exercise/007_NAME.md (where 007 is the number from the title of this issue and NAME is the rest of the file name, for instance data/exercise/001_tail.md is the file which corresponds to exercise 001). Use the code in this file to create a folder practice/007 (using this same number).

Populate the 007 folder with (almost) the same files as in folders practice/001 and practice/002 (they are examples).

Three files are different in each folder:

  1. practice/007/ex.ml: it contains the function's signature, which needs to be implemented by the learner;
  2. practice/007/work/impl.ml: it includes the template meant to be filed by the learner;
  3. practice/007/answer/impl.ml: consists of the solution from the original markdown file.

The examples included in the original markdown file must be turned into test cases in the practice/007/ex.ml file.

Folder structure to create:

practice/007/
├── answer
│   ├── impl.ml
│   └── test
│       ├── dune
│       └── run.ml
├── dune
├── dune-project
├── ex.ml
└── work
    ├── impl.ml
    └── test
        ├── dune
    

cuihtlauac avatar Mar 12 '24 17:03 cuihtlauac

Hi @cuihtlauac I’d like to work on this.

iAlexeze avatar Mar 13 '24 04:03 iAlexeze

Hi @iAlexeze, go for it.

cuihtlauac avatar Mar 13 '24 06:03 cuihtlauac

Hi @iAlexeze are you working on this?

jahielkomu avatar Mar 19 '24 08:03 jahielkomu

Yes I am

iAlexeze avatar Mar 19 '24 18:03 iAlexeze

@iAlexeze: any update?

cuihtlauac avatar Mar 26 '24 16:03 cuihtlauac

Hii! @iAlexeze Hope you're doing well. If you need any help with the task, I would like to take part.

Kxrishx03 avatar Mar 27 '24 03:03 Kxrishx03

I am new to OCaml and I have been working on it @cuihtlauac, but I’d appreciate any help I can get @Kxrishx03.

How do I reach on Discord?

iAlexeze avatar Mar 27 '24 05:03 iAlexeze

@iAlexeze, may I know where you are stuck I will help you.

maha-sachin avatar Mar 27 '24 13:03 maha-sachin