User:Cheddarooz/sandbox

This is cheddarooz's sandbox

TASK 1


The function 'carousel' in the RexxS module returns an image from the Lua table 'imgs'.

TASK 2
Q1. Which letter is conventionally used in Scribunto modules to hold the table of functions?

A1. The letter 'p' is used in Scribunto modules to hold a function.

Q2. What keyword marks the start of a function definition?

A2. The keyword 'function' will create a new function definition.

Q3. What keyword marks the end of a function definition?

A3. The keyword 'end' will mark the end of a function.

Patterns and Matching
Q1. What does %d+ match in a Lua pattern?

A1. The %d+ would match all digits, repeating more than once.

Q2. What does %w+ match in a Lua pattern?

A2. %w+ would represent all alphanumeric characters in ASCII, repeating more than once

In order to get an American style date, the pattern of the code should be "(%w+) (%d+), (%d+)". letter number, number.