Topic on Extension talk:Arrays

Lady Aleena (talkcontribs)

Is there a list of patterns? I was guessing with what I wrote in my previous question, using @@@@ as a pattern. However, I didn't see a link to a page with patterns. So, what are the patterns I can use? Lady Aleena (talk) 06:18, 19 November 2017 (UTC)

Dinoguy1000 (talkcontribs)

@@@@ is just an identifier, like "array-list", and it can be anything you want it to, as long as you're certain it won't appear in the input (since if it does, it will be replaced anywhere it appears, which is probably not what you want). Where I don't bother to name the identifier at all, I'm rather fond of using something like $x$ myself, though as far as being instantly recognizable goes, @@@@ works just as well (maybe a bit better, even). When I do name the identifier, I use $<name>, e.g. $el or $item.

Lady Aleena (talkcontribs)

That is great! I am very used to $name since I write a little bit of perl, and I am more comfortable with scalars using $ to start the name. Thank you! Lady Aleena (talk) 20:31, 19 November 2017 (UTC)

Reply to "Patterns"