-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathPROJECT_LANG_4.ex
20 lines (20 loc) · 1.12 KB
/
PROJECT_LANG_4.ex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Start of script
# I chose Elixir as the fourth language for this project (seanpm2001/SPM_FoodIndex) as Elixir is a language related to food and drink, and I decided to have it as a sample language for this project.
# Definitions
def projectLangFour_IEX {
iex> IO.puts("I chose Elixir as the fourth language for this project (seanpm2001/SPM_FoodIndex) as Elixir is a language related to food and drink, and I decided to have it as a sample language for this project.")
}
def projectLangFour_Standard {
print ("I chose Elixir as the fourth language for this project (seanpm2001/SPM_FoodIndex) as Elixir is a language related to food and drink, and I decided to have it as a sample language for this project.")
}
# Output
try projectLangFour_Standard()
else: {
try projectLangFour_IEX() # Not all systems may support the standard, so IEX is used as a backup.
}
# I don't know how to write in Elixir, so this is a demo script and likely doesn't work.
# File info
# File type: Elixir source file (*.ex)
# File version: 1 (2022, Wednesday, May 25th at 7:34 pm PST)
# Line count (including blank lines and compiler line): 21
# End of script