From: Stefano Z. <za...@bo...> - 2003-03-02 10:03:39
|
On Thu, Feb 27, 2003 at 02:51:58PM +0100, Stefano Zacchiroli wrote: > > That would help. Thanks. I've dug a bit more on some old ocaml sources and I've found some additional functions that IMO should be included in the standard library: (* find functions on arrays *) - val Array.exists: ('a -> bool) -> 'a array -> bool - val Array.for_all: ('a -> bool) -> 'a array -> bool - val Array.find: ('a -> bool) -> 'a array -> 'a (* rotations on arrays and lists, step defaults to 1 *) - val Array.lrotate: ?step:int -> 'a array -> unit - val Array.rrotate: ?step:int -> 'a array -> unit - val List.lrotate: ?step:int -> 'a list -> 'a list - val List.rrotate: ?step:int -> 'a list -> 'a list Probably all functions added to the Array module should also be added to the Bigarray one, but I've never used it ... Cheers. -- Stefano Zacchiroli - Undergraduate Student of CS @ Uni. Bologna, Italy zack@{cs.unibo.it,debian.org,bononia.it} - http://www.bononia.it/zack/ " I know you believe you understood what you think I said, but I am not sure you realize that what you heard is not what I meant! " -- G.Romney |