When using Bitmaps, it is sometimes desirable to set a range of bits to a single value. While any solution will always be linear, it is possible to improve upon naively calling SETBIT for each offset in the range.

An example for such an approach using Lua is at https://gist.github.com/itamarhaber/84815fc1d8cecebaab0ce3065dd755b1, but IMO this kind of functionality could be a nice addition to the core.

@antirez and all: thoughts? I can PR an implementation if agreed.