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