|
![](/i/fill.gif) |
Peter Popov <pet### [at] vip bg> wrote:
: pop Removes the last element of an array, and returns its value
: push Adds one or more elements to the end of an array
: reverse Reverses the direction of an array.
: sort Sorts an array in place
: shift Removes the first element from an array and returns its value
: unshift Adds one or more elements to the beginning of an array
: slice Extracts a section of an array and returns it as a new array
: splice Adds and/or removes elements from an array
: What do you people (esp. the program-oriented folk) think about these?
: Would they be useful? If so, would any kind soul care to patch them
: in? :))
The upcoming pov3.5 will be using C++ and the standard deque class could be
used to make most of those automatically and fast.
--
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |