Advertisement
Guest User

Untitled

a guest
May 30th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Main() {
  2. Range.Delimited(1, 11) | Algorithm.Copy(Range.BackInserter(x));
  3. Range.Delimited(x.begin(), x.end())
  4. | Algorithm.Map(function(it) { return *it; })
  5. | Algorithm.Map(function(val) { return Range.Delimited(1, val + 1); })
  6. | Algorithm.Flatten()
  7. | Algorithm.Copy(Range.StreamInserter(std.cout));
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement