getFirstLetter.lua

Run Settings
LanguageLua
Language Version
Run Command
function getFirstLetter(word) return string.sub(word, 1, 1) end function string.split(inputstr, sep) if sep == nil then sep = "%s" end local t={} for str in string.gmatch(inputstr, "([^"..sep.."]+)") do table.insert(t, str) end return t end local lyrics = [[ My God is realer than yours, He says what I do is right That I should fight if Heaven pours I am very, very, sorry, my apologies, for comin' off so harshly Impart me, second chance, so I can dance the way you want me You Nazi, got me, take a lot more than that to top me Soft ain't what I'm made of, you're the one actin' like Adolf Cocky, way that you goose-steppin', way that you loose-lippin' Talkin' 'bout who trippin', talkin' 'bout who to shove under the bus And who all of us trust that we shouldn't This just in, Lil Darkie is racist, spreadin' the message of Satan with faces Blacker than any of us prolly are, but I'm still offended 'cause I'm a retard He tryna be hard, we tryna be safe by makin' it hard for you to create Niggas that heard of me fight and debate I don't deserve not one word of the hate Mind control, all my thoughts are mine to hold All down in my spinal cord, bitch, this ain't my final form I got no time for you puppets, take yo' opinion and shove it I keep my spirit above it, I'm takin' criticism if it isn't ignorant I'm not concerned with fittin' in, I hit it different I'm a cartoon but niggas doin' more pretendin' than me Bitches act offended, get banned on IG You don't gotta be a hater, you don't like me Why I keep a grin on my face, on my teeth All these niggas mad they ain't eatin', like concentration camps Cut yourself escapin' from leavin' over the nation fence Most these niggas fakin', not workin', I'm puttin' them aside Smoke until there's nothin' remainin', I call it genocide Phoney ass niggas plottin', woah (I call it genocide) Fruity niggas actin' rotten, so (Bitch, I call it genocide) On yo shit nigga, you not been, ho (I call it genocide) I ain't even think of stoppin', though (I call it genocide) ]] local split = string.split(lyrics, ' ') for a,b in pairs(split) do print(b .. "'s first letter is "..getFirstLetter(b)) end
Editor Settings
Theme
Key bindings
Full width
Lines