Set differences

Josh moonburntm at gmail.com
Sat Apr 5 22:27:42 PDT 2014


Can anyone please explain why this works:

	auto numbers = sequence!("n")();
	auto trimmed = setDifference(setDifference(numbers, sequence!("n 
* a[0]")(2)), sequence!("n * a[0]")(3));

but this doesn't?

	auto numbers = sequence!("n")();
	auto trimmed = setDifference(numbers, sequence!("n * a[0]")(2));
	trimmed = setDifference(trimmed, sequence!("n * a[0]")(3));

Thanks,
Josh


More information about the Digitalmars-d-learn mailing list