• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/15

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

15 Cards in this Set

  • Front
  • Back
How to print a hello world?
IO.puts "hello world"
How to declare a literal linked list?
square brackets. Ex: [1, 2, true]
How to concatenate two lists?
++/2 and --/2 operators
how to retrieve the head and the tail?
hd/1 and tl/1
wha't happen when getting the head or tail of a empty list?
An argument error!
How to declare Tuples?
Using curly braces: {:ok, "hello"}
how to get the number of elements of a tuple?
size
How tuple elements are stored?
like a sequence 0-based indexed
How to set an element at a particular index?
set_elem(tuple, index, elem)
how to get a tuple size?
tuple_size(tuple)
what's the difference between Lists and Tuples?
List are stored as a linked list, and Tuples as an array
Which operator is used to concatenate lists?
++
Which operator to concatenate Strings?
<>
How operators ||, && and ! evaluate non boolean?
all values except false and nil will evaluate to true
What is the difference between == and === ?
the latter is more restrict, doesn't convert data types.