Difference between revisions of "My Length Assignment"

From CSE425S Wiki
Jump to navigation Jump to search
Line 7: Line 7:
  
 
=Test=
 
=Test=
{{SMLUnitTest|my_length|warmup_my_length}}
+
{{SMLUnitTesting|my_length|warmup_my_length}}

Revision as of 18:01, 25 August 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

source folder: src/test/sml/warmup_my_length
how to run with CM.make verbosity off: sml -Ccm.verbose=false my_length.sml
how to run with CM.make verbosity on: sml my_length.sml

note: ensure that you have removed all printing to receive credit for any assignment.

SML Error Messages