puzzle_06
(299 SLoC) :: Ada centric solution
- Implementing a generic Round Robin buffer with a
Protected type
- Implementing generic of generic
- Using
Ada.Strings.Maps
for the fun (beauty) of it
function Is_In (Element : in Character;
Set : in Character_Set)
- Using
Ada.Text_IO.Text_Streams
to handle the input (data stream as in real life) - TODO: factoring out some code into a unique procedure call
Analyse_Buffer
cd puzzle_06
alr build
bin/puzzle_06 data/test.dat
bin/puzzle_06 data/input.dat
Run with some traces
bin/puzzle_06 -t data/test.dat
Run with help
bin/puzzle_06 -h