chore: convert acceptance test 5

Also constructors with no fields are now converted to a constant data term.
This commit is contained in:
microproofs
2023-04-18 14:31:36 -04:00
committed by Kasey
parent 9de713803a
commit 23a7e7e680
4 changed files with 91 additions and 48 deletions

View File

@@ -2,10 +2,8 @@ use aiken/builtin.{head_list}
pub fn head(xs: List<a>) -> Option<a> {
when xs is {
[] ->
None
_ ->
Some(head_list(xs))
[] -> None
_ -> Some(head_list(xs))
}
}