author | Christian Urban <christian.urban@kcl.ac.uk> |
Mon, 06 Nov 2023 21:49:55 +0000 | |
changeset 480 | a623dd1f2898 |
parent 473 | ac79c2e534bd |
permissions | -rw-r--r-- |
211 | 1 |
|
473 | 2 |
def urbanmain() = { |
3 |
import C2._ |
|
211 | 4 |
|
473 | 5 |
val urban_list1 = List("a", "b", "b", "c", "d") |
6 |
val urban_list2 = List("d", "b", "d", "b", "d") |
|
211 | 7 |
|
473 | 8 |
assert(prod(urban_list1, urban_list2) == 7) |
9 |
assert(prod(urban_list1, urban_list1) == 7) |
|
10 |
assert(prod(urban_list2, urban_list2) == 13) |
|
11 |
} |