Bar string should never be empty.
[cellular-automata.git] / 003 / src / life.erl
index f8b6bcc..4f3b2e5 100644 (file)
 
 -record(state, {x            :: non_neg_integer()
                ,y            :: non_neg_integer()
-               ,n            :: non_neg_integer()
-               ,bar          :: string()
+               ,n            :: pos_integer()
+               ,bar          :: nonempty_string()
                ,board        :: array()
-               ,gen_count    :: non_neg_integer()
+               ,gen_count    :: pos_integer()
                ,gen_duration :: non_neg_integer()
                ,print_time   :: non_neg_integer()
                }).
This page took 0.028088 seconds and 4 git commands to generate.