Commit graph

  • d64691f1b3 creation of the empty sequence 0.3.2 Simon Cruanes 2013-02-18 17:23:56 +01:00
  • 099b0bbb8d some combinators (inspired by Data.List in Haskell): intersperse, product, unfoldr, max and min Simon Cruanes 2013-02-18 17:20:15 +01:00
  • 8c44f7c63e added flatMap to the combinators Simon Cruanes 2013-02-18 17:04:24 +01:00
  • 55ff51f2cb more combinators (iterate and forever); some sequences of random elements 0.3.1 Simon Cruanes 2013-02-15 17:35:00 +01:00
  • 45e331861d more Sequence constructors and consumers Simon Cruanes 2013-02-15 17:20:33 +01:00
  • d0c858ab9d update of README; in Makefile, only build tests if required, because it requires ocaml4 0.3 Simon Cruanes 2013-02-11 11:52:54 +01:00
  • cc241eeb33 do not install the toy Sexpr module Simon Cruanes 2013-02-10 19:53:39 +01:00
  • f825f71dc6 test Sexpr parsing and printing, with an example type (a kind of lambda terms) Simon Cruanes 2013-02-08 23:21:48 +01:00
  • 2ff632af11 more combinators in Sexpr; bugfix in parsing, Return parsers must be poped off the stack as soon as possible; Simon Cruanes 2013-02-08 23:20:42 +01:00
  • 6322884f2f ability to parse a sequence of values from a Sexpr Simon Cruanes 2013-02-08 20:41:45 +01:00
  • cce20838c4 parser combinators for deserializing token sequences directly into any type, without building the intermediate Sexpr.t. GADT are now necessary, to keep the Sexpr.parse function type-safe Simon Cruanes 2013-02-08 20:26:06 +01:00
  • af0c94dab4 functorial interface for Set too Simon Cruanes 2013-02-07 16:16:23 +01:00
  • 07cc9df645 offer two different functions for combining Map and Seq. Both build an extended version of Map, with additional conversion functions relative to Sequence. One can Adapt an already existing Map module, or Make an extended Map directly Simon Cruanes 2013-02-07 16:07:16 +01:00
  • d706038ed5 use a hidden exception for interrupting computation, so that user-defined functions/callbacks can use Exit without interfering 0.2 Simon Cruanes 2013-02-06 18:15:24 +01:00
  • 301205fafd junk signature removed Simon Cruanes 2013-02-06 14:54:15 +01:00
  • f0c3d399bc update tests Simon Cruanes 2013-02-06 14:53:47 +01:00
  • 2bf5b628ab removed type-conversion submodules, now replaced by simple values. For instance, Sequence.List.of_seq is now Sequence.to_list. Conversion with Set now uses first-class modules to avoir functor hell (not done on Map because of limitations in the type systems) Simon Cruanes 2013-02-06 14:53:33 +01:00
  • 438159aa90 length and is_empty functions for Sequence Simon Cruanes 2013-02-05 16:40:24 +01:00
  • 855dd739e1 more tests with sexprs Simon Cruanes 2013-02-05 09:57:42 +01:00
  • 8c8b09c94a better pretty printing of S-exprs Simon Cruanes 2013-02-05 09:57:27 +01:00
  • 8ee07ed6a2 cycle and repeat operators directly in Sequence Simon Cruanes 2013-02-05 09:57:09 +01:00
  • 10df563bd8 demonstrate the Sequence.map construct on S-expressions Simon Cruanes 2013-02-05 00:09:16 +01:00
  • ac2fb8129c export, install and describe the S-expr module Simon Cruanes 2013-02-05 00:00:44 +01:00
  • 14d651b836 S-expression module, with a strong accent on sequences (o'rly?). S-exprs can be converted to and from streams of 'tokens' Simon Cruanes 2013-02-04 23:29:09 +01:00
  • 28332a45df read sequence of chars from a channel Simon Cruanes 2013-02-04 23:28:02 +01:00
  • 74fb0a4725 test of fast iteration over integers Simon Cruanes 2013-02-04 20:41:58 +01:00
  • ab74acf87a more lightweight representation of sequences (no record, just a function) Simon Cruanes 2013-02-04 20:41:47 +01:00
  • c4b7885e2a add files for opam Simon Cruanes 2013-01-29 15:45:29 +01:00
  • fb42ebcc09 Makefile target to install the library 0.1 Simon Cruanes 2013-01-29 15:02:56 +01:00
  • 0b47a10e9b more functions on Hashtbl; functor for conversion between Map and Sequence Simon Cruanes 2013-01-29 14:40:11 +01:00
  • 087c38aa0c more efficient Array.of_seq (only allocates one intermediate list, then reverse the array); test of Array.to_seq and Sequence.append Simon Cruanes 2013-01-29 14:31:21 +01:00
  • 1e90120295 use a functor rather than first-class modules, for Set Simon Cruanes 2013-01-29 14:11:47 +01:00
  • ee4ce9c9ba generic sequence pretty-printing function Simon Cruanes 2013-01-29 11:13:46 +01:00
  • fbc4946a99 add conversion from/to Stack, Queue, and add functions for Array and Ints; also added more doc Simon Cruanes 2013-01-28 15:13:05 +01:00
  • 2ca708d41a test the conversion to set Simon Cruanes 2013-01-28 14:32:17 +01:00
  • fa412b7ece reformatted license prelude; add a Set conversion module, using first class modules of ocaml>=3.12 Simon Cruanes 2013-01-28 14:32:06 +01:00
  • 024e0115db added license prelude to files; added Sequence.singleton builder Simon Cruanes 2013-01-28 01:41:43 +01:00
  • 64f7afb6a7 test Sequence.rev, since its implementation is non totally trivial Simon Cruanes 2013-01-28 01:16:18 +01:00
  • 8e9842c2b6 generate documentation Simon Cruanes 2013-01-28 01:08:15 +01:00
  • 0534a1fc2b for_all, rev, iteri, exists added to sequence Simon Cruanes 2013-01-28 01:04:42 +01:00
  • 7dbd8d15e3 append/concat primitives Simon Cruanes 2013-01-28 00:55:57 +01:00
  • 57b778f6cc iterate on integers Simon Cruanes 2013-01-28 00:34:54 +01:00
  • bd7ecf0b96 more tests Simon Cruanes 2013-01-28 00:27:02 +01:00
  • b4ea152014 update makefile Simon Cruanes 2013-01-28 00:21:46 +01:00
  • e5039470e8 renamed Sequence.sequence to Sequence.t Simon Cruanes 2013-01-28 00:12:19 +01:00
  • 546a77ba8f modules to convert lists and hashtables from/to sequences Simon Cruanes 2013-01-28 00:09:48 +01:00
  • 2113359195 Add README and license Simon Cruanes 2013-01-27 23:44:04 +01:00
  • 7c8e4fca24 Initial commit Simon Cruanes 2013-01-27 14:38:43 -08:00
  • 0f04cb8f5c take, concat and drop functions Simon Cruanes 2013-01-27 23:37:47 +01:00
  • ad02a642bf gitignore Simon Cruanes 2013-01-27 23:18:55 +01:00
  • 4229268f76 makefile Simon Cruanes 2013-01-27 23:18:18 +01:00
  • d29a21f4f5 tests module Simon Cruanes 2013-01-27 23:17:41 +01:00
  • 4982630967 sequence type Simon Cruanes 2013-01-27 23:17:29 +01:00