Recursion
Recursion [parameter x]
If this is your first time reading this poem
Go to the next line, or else go to Label 1
The power of Recursion
Is the possibility of infinite answers
From a finite statement
Recursion is a way of solving problems
Involving a computer routine calling itself
Potentially any number of times
Even though the routine
May not have any explicit repetitions inside itself
When this poem begins a variable, [parameter x], can be passed into it
To be used in the poem instead of the term [parameter x]
So that wherever you see the term [parameter x] read instead the word
That replaces it
When you see the statement “Call Recursion”
Begin reading the poem again
But replace [parameter x] with whatever word is next to “Call Recursion”
EndIf
Label 1
If [parameter x] is null
Then replace [parameter x] with the word “love”
Endif
So the answer in this case is [parameter x]
If [parameter x] = “love”
Call Recursion replacing [parameter x] with the word “hate”
Else
Go to EndPoem
Endif
EndPoem
This is a simple, binary recursive poem
It has two outcomes
Both are inconsistent with the logic of this poem
<Deleted User> (5760)
Thu 15th Jan 2009 09:45
Hi Paul, I like this very much. I am a big fan of Jorge Luis Borges' work and this very much reminds me of his story "The Lottery".
Matt