fix: tuples
This commit is contained in:
parent
37def91fc5
commit
299cd1ac24
|
@ -1,3 +1,3 @@
|
|||
test foo() {
|
||||
(1, []) == (1, [])
|
||||
#(1, []) == #(1, [])
|
||||
}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
pub fn unzip(xs: List<(a, b)>) -> (List<a>, List<b>) {
|
||||
pub fn unzip(xs: List<#(a, b)>) -> #(List<a>, List<b>) {
|
||||
when xs is {
|
||||
[] -> ([], [])
|
||||
[(a, b), ..rest] -> {
|
||||
let (a_tail, b_tail) = unzip(rest)
|
||||
([a, ..a_tail], [b, ..b_tail])
|
||||
[] -> #([], [])
|
||||
[#(a, b), ..rest] -> {
|
||||
let #(a_tail, b_tail) = unzip(rest)
|
||||
#([a, ..a_tail], [b, ..b_tail])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
all:
|
||||
@for t in $(shell find . -regex ".*[0-9]\{3\}" -type d | sort); do \
|
||||
aiken check -d $${t}; \
|
||||
cargo run --quiet -- check -d $${t}; \
|
||||
echo ""; \
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue