RosettaCodeData/Task/Queue-Definition/SenseTalk/queue-definition-1.sensetalk
2023-07-01 13:44:08 -04:00

17 lines
372 B
Text

set myFoods to be an empty list
push "grapes" into myFoods
push "orange" into myFoods
push "apricot" into myFoods
put "The foods in my queue are: " & myFoods
pull from myFoods into firstThingToEat
put "The first thing to eat is: " & firstThingToEat
if myFoods is empty then
put "The foods list is empty!"
else
put "The remaining foods are: " & myFoods
end if