POV-Ray : Newsgroups : povray.general : Suggestion: array functions : Re: Suggestion: array functions Server Time
8 Aug 2024 06:13:31 EDT (-0400)
  Re: Suggestion: array functions  
From: Warp
Date: 12 Feb 2001 07:37:31
Message: <3a87d90a@news.povray.org>
Peter Popov <pet### [at] vipbg> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.