this post was submitted on 15 Aug 2023
6 points (87.5% liked)

Trivia

240 readers
1 users here now

A place to quiz others with trivia questions related to the instance!

Please keep questions on the topic of trivia. If you have a question for how to do something please post it in a community relevant to what youre doing or [email protected]

Guidelines

Credits

Logo base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS
6
Guess the Language: #8 (programming.dev)
submitted 1 year ago* (last edited 1 year ago) by Ategon to c/trivia
 
function isPalindrome(str)
    str = str:gsub('%s', ''):lower()
    return str == str:reverse()
end

local input = "A man a plan a canal Panama"
if isPalindrome(input) then
    print("It's a palindrome!")
else
    print("It's not a palindrome.")
end

Testing out a new voting system of using strawpoll so that vote totals can be hidden. A thing I noticed in some of the previous rounds was that people would pile on to the same option. Loses a bit of the ease of vote but shouldnt be too bad since you can just instantly vote after you go to the site

You can vote for what you think it is here: https://strawpoll.com/xVg7j6Q5Rnr

Voting ends in 12 hours and then ill post here with the results. You can talk about it below but if you want to talk about the correct answer put it in spoiler tags

you are viewing a single comment's thread
view the rest of the comments
[–] Ategon 2 points 1 year ago

Click to show answerThe answer is Lua! The majority of people got it right (16/20 - 80%)