summaryrefslogtreecommitdiff
path: root/test/patiter.myr
blob: 9557e16d12b9b894e31bed1a358c81947ce25014 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use std

const main = {
	/* should print 1,3,5, skipping 4 */
	for (1,x) : [(1,2),(1,3),(2,4),(1,5)]
		std.put("{}", x)
	;;
	/* should print 1, 2 skipping `None */
	for `std.Some v : [`std.None, `std.Some 1, `std.Some 2]
		std.put("{}", v)
	;;
	std.put("\n")
}