next up previous contents index
Next: All about colours Up: Program examples Previous: Second go   Contents   Index

Or even: A little recursion !

to fu :verb
make "pronouns [je tu il nous vous elles]
make "endings [ai as a ons ez ont]
conjugate :verb :pronouns :endings
end
to conjugate :verb :pronouns :endings
if empty? :pronouns [stop]
pr se first :pronouns word :verb first :endings
conjugate :verb bf :pronouns bf :endings
end

fu "parler

je parlerai
tu parleras
il parlera
nous parlerons
vous parlerez
elles parleront



Loïc 2008-06-08