about summary refs log blame commit diff stats
path: root/js/games/nluqo.github.io/~bh/61a-pages/Lib/test.logo
blob: bb2e15aa1051b7faf4052cefd4e2eccdd9e40164 (plain) (tree)






































                                          
to second :thing
op first bf :thing
end

to twice :thing
pr :thing
pr :thing
end

to pigl :word
if vowelp first :word [op word :word "ay]
op pigl word bf :word first :word
end

to vowelp :let
op memberp :let "aeiou
end

to piglatin :sent
if emptyp :sent [op []]
op fput pigl first :sent piglatin bf :sent
end

to factorial :n
if :n=0 [output 1]
output :n * factorial :n-1
end

to memberp :thing :list
if emptyp :list [op "false]
if equalp :thing first :list [op "true]
op memberp :thing bf :list
end

to repeat :num :instr
if :num=0 [stop]
run :instr
repeat :num-1 :instr
end