Difference between revisions of "My Length Assignment"

From CSE425S Wiki
Jump to navigation Jump to search
(Created page with "=Code to Implement= {{SMLToImplement|my_length|my_length|warmup_my_length}} ==my_length== Write a function <code>my_length</code> which evaluates to the length of the given...")
 
Line 5: Line 5:
 
==my_length==
 
==my_length==
 
Write a function <code>my_length</code> which evaluates to the length of the given <code>values</code> list.
 
Write a function <code>my_length</code> which evaluates to the length of the given <code>values</code> list.
 +
 +
=Test=
 +
{{SMLUnitTest|my_length|warmup_my_length}}

Revision as of 22:22, 7 January 2022

Code to Implement

file: src/main/sml/warmup_my_length/my_length.sml Smlnj-logo.png
functions: my_length

my_length

Write a function my_length which evaluates to the length of the given values list.

Test

file: unit_test_my_length.sml
source folder: src/test/sml/warmup_my_length