Skip to content

ex1 12

← Back

Basic Info

Functional Programming
└── Lab ML
    └── 0​314
        └── ex1 12.sml

Preview

(*Write a function to test if a list is empty*)

fun emptyList(nil) =
    true
| emptyList(_) =
    false
;