------------------------------------------------------------ revno: 394 committer: Jean-Vincent Loddo <lo...@lipn.univ-paris13.fr> branch nick: ocamlbricks timestamp: Mon 2014-04-07 17:20:29 +0200 message: Added functions {Array,List}Extra.amass (group elements in parts of the provided size). Example: let xs = ['a';'b';'c';'d';'e';'f';'g';'h';'i';'j'] ;; ListExtra.amass 3 xs ;; - : char list list = [['a'; 'b'; 'c']; ['d'; 'e'; 'f']; ['g'; 'h'; 'i']; ['j']] xs = List.concat (ListExtra.amass 3 xs) ;; - : bool = true modified: EXTRA/arrayExtra.ml EXTRA/arrayExtra.mli EXTRA/listExtra.ml EXTRA/listExtra.mli
-- lp:ocamlbricks https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk Your team marionnet-dev is subscribed to branch lp:ocamlbricks. To unsubscribe from this branch go to https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk/+edit-subscription _______________________________________________ Mailing list: https://launchpad.net/~marionnet-dev Post to : marionnet-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~marionnet-dev More help : https://help.launchpad.net/ListHelp