Sha256: f147ab7ba1a370bef50f21937d7c69ed18662b145d5246a87f7058c290c8e46b

Contents?: true

Size: 1.37 KB

Versions: 47

Compression:

Stored size: 1.37 KB

Contents

## Setup

You will need an SML interpreter to solve these problems. There are several popular implementations
[MLton](http://mlton.org/), [SML/NJ](http://www.smlnj.org/), and [PolyML](http://www.polyml.org/). 

For reference, the problems are being developed and tested using PolyML. (Note: currently PolyML is required to properly run tests)

#### How to test changes
 
1. Go into the problem directory

 ```
 cd <path-to-xsml-project/exercises/accumulate
 ```

2. Create your solution to the problem named after the problem itself (in this case `accumulate.sml`)
3. Run the test file using PolyML

 ```
 poly -q < test_accumulate.sml
 ```

4. Verify that tests pass

 ```
 Applying a function the empty-list ([]) does nothing: PASSED
 Applying a square function to [1,2,3] produces [1,4,9]: PASSED
 Applying a cube function to[1,2,3] produces [1,8,27]: PASSED
 Applying an increment function to [1,2,3] produces [2,3,4]: PASSED
 Applying an decrement function to [1,2,3] produces [0,1,2]: PASSED
 ALL TESTS PASSED%
 ```

5. Correct any failing tests 

 ```
 Applying a function the empty-list ([]) does nothing: PASSED
 Applying a square function to [1,2,3] produces [1,4,9]: FAILED
 Applying a cube function to[1,2,3] produces [1,8,27]: PASSED
 Applying an increment function to [1,2,3] produces [2,3,4]: PASSED
 Applying an decrement function to [1,2,3] produces [0,1,2]: PASSED
 1 TEST(S) FAILED%
 ```

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
trackler-2.2.1.37 tracks/sml/SETUP.md
trackler-2.2.1.36 tracks/sml/SETUP.md
trackler-2.2.1.35 tracks/sml/SETUP.md
trackler-2.2.1.34 tracks/sml/SETUP.md
trackler-2.2.1.33 tracks/sml/SETUP.md
trackler-2.2.1.32 tracks/sml/SETUP.md
trackler-2.2.1.31 tracks/sml/SETUP.md
trackler-2.2.1.30 tracks/sml/SETUP.md
trackler-2.2.1.29 tracks/sml/SETUP.md
trackler-2.2.1.28 tracks/sml/SETUP.md
trackler-2.2.1.27 tracks/sml/SETUP.md
trackler-2.2.1.26 tracks/sml/SETUP.md
trackler-2.2.1.25 tracks/sml/SETUP.md
trackler-2.2.1.24 tracks/sml/SETUP.md
trackler-2.2.1.23 tracks/sml/SETUP.md
trackler-2.2.1.22 tracks/sml/SETUP.md
trackler-2.2.1.21 tracks/sml/SETUP.md
trackler-2.2.1.20 tracks/sml/SETUP.md
trackler-2.2.1.19 tracks/sml/SETUP.md
trackler-2.2.1.18 tracks/sml/SETUP.md