Sha256: 4917c5f3bd9f04417f9e68789c77ac64b1855e09e6d011124fa24f40a710953b

Contents?: true

Size: 1.25 KB

Versions: 196

Compression:

Stored size: 1.25 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 using PolyML.

## Testing Note: your problem implementation must be in a file named example.sml

1. cd into your problem directory
2. use the test_<problem-name>.sml file with the SML interpreter of your choice (3 listed above)
3. verify that the allTestsPass variable has a true value
   * if so, congrats
   * if not, something is wrong with your implementation of the problem (or the test cases :|)

#### Example:

     cd ~/exercism/xsml/accumulate
     poly
     Poly/ML 5.2 Release
     > use "test_accumulate.sml";
     val accumulate = fn : 'a list -> ('a -> 'b) -> 'b list
     val it = () : unit
     val test_cases =
         [([], fn, []), ([1, 2, 3], fn, [1, 4, 9]), ([1, 2, 3], fn, [1, 8, 27]),
          ([1, 2, 3], fn, [2, 3, 4]), ([1, 2, 3], fn, [0, 1, 2])]
      : (int list * (int -> int) * int list) list
     val allTestsPass = true : bool
     val run_tests = fn : ('a list * ('a -> ''b) * ''b list) list -> bool list
     val it = () : unit
     (* inspect allTestsPass variable for true or false*)

Version data entries

196 entries across 196 versions & 1 rubygems

Version Path
trackler-2.1.0.41 tracks/sml/docs/EXERCISE_README_INSERT.md
trackler-2.1.0.40 tracks/sml/docs/EXERCISE_README_INSERT.md
trackler-2.1.0.39 tracks/sml/docs/EXERCISE_README_INSERT.md
trackler-2.1.0.38 tracks/sml/SETUP.md
trackler-2.1.0.37 tracks/sml/SETUP.md
trackler-2.1.0.36 tracks/sml/SETUP.md
trackler-2.1.0.34 tracks/sml/SETUP.md
trackler-2.1.0.33 tracks/sml/SETUP.md
trackler-2.1.0.32 tracks/sml/SETUP.md
trackler-2.1.0.31 tracks/sml/SETUP.md
trackler-2.1.0.30 tracks/sml/SETUP.md
trackler-2.1.0.29 tracks/sml/SETUP.md
trackler-2.1.0.28 tracks/sml/SETUP.md
trackler-2.1.0.27 tracks/sml/SETUP.md
trackler-2.1.0.26 tracks/sml/SETUP.md
trackler-2.1.0.25 tracks/sml/SETUP.md
trackler-2.1.0.24 tracks/sml/SETUP.md
trackler-2.1.0.23 tracks/sml/SETUP.md
trackler-2.1.0.22 tracks/sml/SETUP.md
trackler-2.1.0.21 tracks/sml/SETUP.md