Re-format and re-run all acceptance tests.

This commit is contained in:
KtorZ
2024-01-20 10:43:17 +01:00
parent 9ee2d58ba3
commit b50e4ab63a
77 changed files with 449 additions and 830 deletions

View File

@@ -1,12 +1,9 @@
// Could possibly be forbidden by the parser instead if we have no intent to support that.
pub fn choice(self: List<Option<a>>) -> Option<a> {
when self is {
[] ->
None
[Some(_) as result, ..] ->
result
[None, ..others] ->
choice(others)
[] -> None
[Some(_) as result, ..] -> result
[None, ..others] -> choice(others)
}
}

View File

@@ -1,11 +1,8 @@
pub fn choice(self: List<Option<a>>) -> Option<a> {
when self is {
[] ->
None
[Some(x), ..] ->
Some(x)
[None, ..others] ->
choice(others)
[] -> None
[Some(x), ..] -> Some(x)
[None, ..others] -> choice(others)
}
}

View File

@@ -1,11 +1,8 @@
pub fn choice(self: List<Option<a>>) -> Option<a> {
when self is {
[] ->
None
[None, ..others] ->
choice(others)
[result, ..] ->
result
[] -> None
[None, ..others] -> choice(others)
[result, ..] -> result
}
}