Reverse a string: Difference between revisions
Content deleted Content added
→{{header|Haskell}}: added haskell extra credit |
m alphabetized list |
||
Line 55: | Line 55: | ||
<lang apl> ⌽'asdf' |
<lang apl> ⌽'asdf' |
||
fdsa</lang> |
fdsa</lang> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|AppleScript}}== |
=={{header|AppleScript}}== |
||
Line 78: | Line 69: | ||
return temp |
return temp |
||
end reverse_string</lang> |
end reverse_string</lang> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|AutoIt}}== |
=={{header|AutoIt}}== |
||
Line 268: | Line 269: | ||
user=> |
user=> |
||
</pre> |
</pre> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|CoffeeScript}}== |
=={{header|CoffeeScript}}== |
||
Line 278: | Line 274: | ||
"qwerty".split("").reverse().join "" |
"qwerty".split("").reverse().join "" |
||
</lang> |
</lang> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Common Lisp}}== |
=={{header|Common Lisp}}== |
||
Line 352: | Line 353: | ||
printf(1, "%s\n", {reverse("abcdef") }) |
printf(1, "%s\n", {reverse("abcdef") }) |
||
</lang> |
</lang> |
||
⚫ | |||
⚫ | |||
=={{header|Factor}}== |
=={{header|Factor}}== |
||
Line 421: | Line 425: | ||
no devil lived on</lang> |
no devil lived on</lang> |
||
⚫ | |||
⚫ | |||
=={{header|GAP}}== |
=={{header|GAP}}== |
||
<lang gap>Reversed("abcdef"); |
<lang gap>Reversed("abcdef"); |
||
Line 590: | Line 592: | ||
<lang nial>reverse 'asdf' |
<lang nial>reverse 'asdf' |
||
=fdsa</lang> |
=fdsa</lang> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Objective-C}}== |
=={{header|Objective-C}}== |
||
Line 665: | Line 672: | ||
return 0; |
return 0; |
||
}</lang> |
}</lang> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|OCaml}}== |
=={{header|OCaml}}== |