Re-format and re-run all acceptance tests.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user