Is there an idiomatic way to do: int[] numbers = [0, 1, 2, 3]; assert(adjacent_diff(numbers) == [1, 1, 1]);
I can't find something useful in the std library.
Guillaume Chatelet via Digitalmars-d-learn Fri, 16 Oct 2015 04:16:06 -0700
Is there an idiomatic way to do: int[] numbers = [0, 1, 2, 3]; assert(adjacent_diff(numbers) == [1, 1, 1]);
I can't find something useful in the std library.