chore: convert acceptance test 5
Also constructors with no fields are now converted to a constant data term.
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user