Jump to content

Palindrome detection: Difference between revisions

no edit summary
(Add 8086 assembly)
No edit summary
Line 477:
 
=={{header|Arturo}}==
<lang arturorebol>isPalindromepalindrome?: @($[seq)] -> seq = [reverse seq]
 
<lang arturo>isPalindrome: @(seq) -> seq = [reverse seq]
loop #(["abba" "boom" "radar" "civic" "great")] {'wrd [
 
print [wrd ": palindrome?" palindrome? wrd]
loop #("abba" "boom" "radar" "civic" "great") {
]</lang>
print & + ": isPalindrome? " + [isPalindrome &]
}
</lang>
 
{{out}}
 
<pre>abba : isPalindromepalindrome? true
boom : isPalindromepalindrome? false
radar : isPalindromepalindrome? true
civic : isPalindromepalindrome? true
great : isPalindromepalindrome? false</pre>
 
=={{header|AutoHotkey}}==
1,532

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.