Is Strictly Ascending Assignment

From CSE425S Wiki
Revision as of 06:24, 26 January 2022 by Dennis.cosgrove (talk | contribs) (Created page with "=Code to Implement= {{SMLToImplement|is_strictly_ascending|is_strictly_ascending|warmup_is_strictly_ascending}} ==is_strictly_ascending== Write a function fun is_strictly_...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Code to Implement

file: src/main/sml/warmup_is_strictly_ascending/is_strictly_ascending.sml Smlnj-logo.png
functions: is_strictly_ascending

is_strictly_ascending

Write a function

fun is_strictly_ascending(xs : int list) : bool

which returns true if every value in xs is strictly less than all of the values which follow it.

Test

file: unit_test_is_strictly_ascending.sml
source folder: src/test/sml/warmup_is_strictly_ascending