Edited, memorised or added to reading list

on 12-Sep-2021 (Sun)

Do you want BuboFlash to help you learning these things? Click here to log in or create user.

Fish are aquatic, craniate, gill-bearing animals that lack limbs with digits.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Fish - Wikipedia
oups included Jawless fish †Armoured fish †Spiny sharks Cartilaginous fish Bony fish Ray-finned fish Lobe-finned fish Cladistically included but traditionally excluded taxa Tetrapods †Conodonts <span>Fish are aquatic, craniate, gill-bearing animals that lack limbs with digits. Included in this definition are the living hagfish, lampreys, and cartilaginous and bony fish as well as various extinct related groups. Around 99% of living fish species are ray-finned




Flashcard 6731812965644

Question
Fish are aquatic, craniate, gill-bearing animals that lack [...] with digits.
Answer
limbs

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Fish are aquatic, craniate, gill-bearing animals that lack limbs with digits.

Original toplevel document

Fish - Wikipedia
oups included Jawless fish †Armoured fish †Spiny sharks Cartilaginous fish Bony fish Ray-finned fish Lobe-finned fish Cladistically included but traditionally excluded taxa Tetrapods †Conodonts <span>Fish are aquatic, craniate, gill-bearing animals that lack limbs with digits. Included in this definition are the living hagfish, lampreys, and cartilaginous and bony fish as well as various extinct related groups. Around 99% of living fish species are ray-finned







Flashcard 6731814538508

Question
Fish are [...], craniate, gill-bearing animals that lack limbs with digits.
Answer
aquatic

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Fish are aquatic, craniate, gill-bearing animals that lack limbs with digits.

Original toplevel document

Fish - Wikipedia
oups included Jawless fish †Armoured fish †Spiny sharks Cartilaginous fish Bony fish Ray-finned fish Lobe-finned fish Cladistically included but traditionally excluded taxa Tetrapods †Conodonts <span>Fish are aquatic, craniate, gill-bearing animals that lack limbs with digits. Included in this definition are the living hagfish, lampreys, and cartilaginous and bony fish as well as various extinct related groups. Around 99% of living fish species are ray-finned







Flashcard 6731816111372

Question
Fish are aquatic, [...], gill-bearing animals that lack limbs with digits.
Answer
craniate

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Fish are aquatic, craniate, gill-bearing animals that lack limbs with digits.

Original toplevel document

Fish - Wikipedia
oups included Jawless fish †Armoured fish †Spiny sharks Cartilaginous fish Bony fish Ray-finned fish Lobe-finned fish Cladistically included but traditionally excluded taxa Tetrapods †Conodonts <span>Fish are aquatic, craniate, gill-bearing animals that lack limbs with digits. Included in this definition are the living hagfish, lampreys, and cartilaginous and bony fish as well as various extinct related groups. Around 99% of living fish species are ray-finned







Flashcard 6731817159948

Question
Fish are aquatic, craniate, [...]-bearing animals that lack limbs with digits.
Answer
gill

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Fish are aquatic, craniate, gill-bearing animals that lack limbs with digits.

Original toplevel document

Fish - Wikipedia
oups included Jawless fish †Armoured fish †Spiny sharks Cartilaginous fish Bony fish Ray-finned fish Lobe-finned fish Cladistically included but traditionally excluded taxa Tetrapods †Conodonts <span>Fish are aquatic, craniate, gill-bearing animals that lack limbs with digits. Included in this definition are the living hagfish, lampreys, and cartilaginous and bony fish as well as various extinct related groups. Around 99% of living fish species are ray-finned







#elixir
In Elixir, the operator / always returns a float.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Basic types - The Elixir programming language
arithmetic Open up iex and type the following expressions: iex> 1 + 2 3 iex> 5 * 5 25 iex> 10 / 2 5.0 Notice that 10 / 2 returned a float 5.0 instead of an integer 5. This is expected. <span>In Elixir, the operator / always returns a float. If you want to do integer division or get the division remainder, you can invoke the div and rem functions: iex> div(10, 2) 5 iex> div 10, 2 5 iex> rem 10, 3 1 Notice that Elix




Flashcard 6731826334988

Tags
#elixir
Question
In Elixir, the operator / always returns a [...].
Answer
float

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
In Elixir, the operator / always returns a float.

Original toplevel document

Basic types - The Elixir programming language
arithmetic Open up iex and type the following expressions: iex> 1 + 2 3 iex> 5 * 5 25 iex> 10 / 2 5.0 Notice that 10 / 2 returned a float 5.0 instead of an integer 5. This is expected. <span>In Elixir, the operator / always returns a float. If you want to do integer division or get the division remainder, you can invoke the div and rem functions: iex> div(10, 2) 5 iex> div 10, 2 5 iex> rem 10, 3 1 Notice that Elix







#elixir
If you want to do integer division or get the division remainder, you can invoke the div and rem functions
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Basic types - The Elixir programming language
essions: iex> 1 + 2 3 iex> 5 * 5 25 iex> 10 / 2 5.0 Notice that 10 / 2 returned a float 5.0 instead of an integer 5. This is expected. In Elixir, the operator / always returns a float. <span>If you want to do integer division or get the division remainder, you can invoke the div and rem functions: iex> div(10, 2) 5 iex> div 10, 2 5 iex> rem 10, 3 1 Notice that Elixir allows you to drop the parentheses when invoking named functions with at least one argument. This featur




Flashcard 6731830529292

Tags
#elixir
Question
If you want to do integer division or get the division remainder, you can invoke the [...] and rem functions
Answer
div

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
If you want to do integer division or get the division remainder, you can invoke the div and rem functions

Original toplevel document

Basic types - The Elixir programming language
essions: iex> 1 + 2 3 iex> 5 * 5 25 iex> 10 / 2 5.0 Notice that 10 / 2 returned a float 5.0 instead of an integer 5. This is expected. In Elixir, the operator / always returns a float. <span>If you want to do integer division or get the division remainder, you can invoke the div and rem functions: iex> div(10, 2) 5 iex> div 10, 2 5 iex> rem 10, 3 1 Notice that Elixir allows you to drop the parentheses when invoking named functions with at least one argument. This featur







Flashcard 6731832102156

Tags
#elixir
Question
If you want to do integer division or get the division remainder, you can invoke the div and [...] functions
Answer
rem

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
If you want to do integer division or get the division remainder, you can invoke the div and rem functions

Original toplevel document

Basic types - The Elixir programming language
essions: iex> 1 + 2 3 iex> 5 * 5 25 iex> 10 / 2 5.0 Notice that 10 / 2 returned a float 5.0 instead of an integer 5. This is expected. In Elixir, the operator / always returns a float. <span>If you want to do integer division or get the division remainder, you can invoke the div and rem functions: iex> div(10, 2) 5 iex> div 10, 2 5 iex> rem 10, 3 1 Notice that Elixir allows you to drop the parentheses when invoking named functions with at least one argument. This featur







Flashcard 6731833675020

Tags
#elixir
Question
What is the shortcut notation for entering binary numbers in Elixir
Answer
0b1100111

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
Basic types - The Elixir programming language
ast one argument. This feature gives a cleaner syntax when writing declarations and control-flow constructs. However, Elixir developers generally prefer to use parentheses. Elixir also supports <span>shortcut notations for entering binary, octal, and hexadecimal numbers: iex> 0b1010 10 iex> 0o777 511 iex> 0x1F 31 Float numbers require a dot followed by at least one digit and also support e for scientific notatio







Flashcard 6731836034316

Tags
#elixir
Question
What is the shortcut notation for entering hexadecimal numbers in Elixir
Answer
0x123456789abcdef

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
Basic types - The Elixir programming language
ast one argument. This feature gives a cleaner syntax when writing declarations and control-flow constructs. However, Elixir developers generally prefer to use parentheses. Elixir also supports <span>shortcut notations for entering binary, octal, and hexadecimal numbers: iex> 0b1010 10 iex> 0o777 511 iex> 0x1F 31 Float numbers require a dot followed by at least one digit and also support e for scientific notatio







Flashcard 6731839442188

Tags
#elixir
Question
What is the shortcut notation for entering octal numbers in Elixir
Answer
0o1234567

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill
Basic types - The Elixir programming language
ast one argument. This feature gives a cleaner syntax when writing declarations and control-flow constructs. However, Elixir developers generally prefer to use parentheses. Elixir also supports <span>shortcut notations for entering binary, octal, and hexadecimal numbers: iex> 0b1010 10 iex> 0o777 511 iex> 0x1F 31 Float numbers require a dot followed by at least one digit and also support e for scientific notatio







#elixir

Floats in Elixir are 64-bit double precision.

You can invoke the round function to get the closest integer to a given float, or the trunc function to get the integer part of a float.

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Basic types - The Elixir programming language
ex> 0b1010 10 iex> 0o777 511 iex> 0x1F 31 Float numbers require a dot followed by at least one digit and also support e for scientific notation: iex> 1.0 1.0 iex> 1.0e-10 1.0e-10 <span>Floats in Elixir are 64-bit double precision. You can invoke the round function to get the closest integer to a given float, or the trunc function to get the integer part of a float. iex> round(3.58) 4 iex> trunc(3.58) 3 Identifying functions and documentation Functions in Elixir are identified by both their name and their arity. The arity of a function descri




Flashcard 6731846520076

Tags
#elixir
Question

Floats in Elixir are 64-bit double precision.

You can invoke the [...] function to get the closest integer to a given float, or the trunc function to get the integer part of a float.

Answer
round

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Floats in Elixir are 64-bit double precision. You can invoke the round function to get the closest integer to a given float, or the trunc function to get the integer part of a float.

Original toplevel document

Basic types - The Elixir programming language
ex> 0b1010 10 iex> 0o777 511 iex> 0x1F 31 Float numbers require a dot followed by at least one digit and also support e for scientific notation: iex> 1.0 1.0 iex> 1.0e-10 1.0e-10 <span>Floats in Elixir are 64-bit double precision. You can invoke the round function to get the closest integer to a given float, or the trunc function to get the integer part of a float. iex> round(3.58) 4 iex> trunc(3.58) 3 Identifying functions and documentation Functions in Elixir are identified by both their name and their arity. The arity of a function descri







Flashcard 6731848092940

Tags
#elixir
Question

Floats in Elixir are [...]-bit double precision.

You can invoke the round function to get the closest integer to a given float, or the trunc function to get the integer part of a float.

Answer
64

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Floats in Elixir are 64-bit double precision. You can invoke the round function to get the closest integer to a given float, or the trunc function to get the integer part of a float.

Original toplevel document

Basic types - The Elixir programming language
ex> 0b1010 10 iex> 0o777 511 iex> 0x1F 31 Float numbers require a dot followed by at least one digit and also support e for scientific notation: iex> 1.0 1.0 iex> 1.0e-10 1.0e-10 <span>Floats in Elixir are 64-bit double precision. You can invoke the round function to get the closest integer to a given float, or the trunc function to get the integer part of a float. iex> round(3.58) 4 iex> trunc(3.58) 3 Identifying functions and documentation Functions in Elixir are identified by both their name and their arity. The arity of a function descri







Flashcard 6731849665804

Tags
#elixir
Question

Floats in Elixir are 64-bit double precision.

You can invoke the round function to get the closest integer to a given float, or the [...] function to get the integer part of a float.

Answer
trunc

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Floats in Elixir are 64-bit double precision. You can invoke the round function to get the closest integer to a given float, or the trunc function to get the integer part of a float.

Original toplevel document

Basic types - The Elixir programming language
ex> 0b1010 10 iex> 0o777 511 iex> 0x1F 31 Float numbers require a dot followed by at least one digit and also support e for scientific notation: iex> 1.0 1.0 iex> 1.0e-10 1.0e-10 <span>Floats in Elixir are 64-bit double precision. You can invoke the round function to get the closest integer to a given float, or the trunc function to get the integer part of a float. iex> round(3.58) 4 iex> trunc(3.58) 3 Identifying functions and documentation Functions in Elixir are identified by both their name and their arity. The arity of a function descri







#elixir
Functions in Elixir are identified by both their name and their arity.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Basic types - The Elixir programming language
nction to get the closest integer to a given float, or the trunc function to get the integer part of a float. iex> round(3.58) 4 iex> trunc(3.58) 3 Identifying functions and documentation <span>Functions in Elixir are identified by both their name and their arity. The arity of a function describes the number of arguments that the function takes. From this point on we will use both the function name and its arity to describe functions throughout t




Flashcard 6731853860108

Tags
#elixir
Question
Functions in Elixir are identified by both their [...] and their arity.
Answer
name

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Functions in Elixir are identified by both their name and their arity.

Original toplevel document

Basic types - The Elixir programming language
nction to get the closest integer to a given float, or the trunc function to get the integer part of a float. iex> round(3.58) 4 iex> trunc(3.58) 3 Identifying functions and documentation <span>Functions in Elixir are identified by both their name and their arity. The arity of a function describes the number of arguments that the function takes. From this point on we will use both the function name and its arity to describe functions throughout t







Flashcard 6731855432972

Tags
#elixir
Question
Functions in Elixir are identified by both their name and their [...].
Answer
arity

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Functions in Elixir are identified by both their name and their arity.

Original toplevel document

Basic types - The Elixir programming language
nction to get the closest integer to a given float, or the trunc function to get the integer part of a float. iex> round(3.58) 4 iex> trunc(3.58) 3 Identifying functions and documentation <span>Functions in Elixir are identified by both their name and their arity. The arity of a function describes the number of arguments that the function takes. From this point on we will use both the function name and its arity to describe functions throughout t







#elixir
The arity of a function describes the number of arguments that the function takes.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Basic types - The Elixir programming language
on to get the integer part of a float. iex> round(3.58) 4 iex> trunc(3.58) 3 Identifying functions and documentation Functions in Elixir are identified by both their name and their arity. <span>The arity of a function describes the number of arguments that the function takes. From this point on we will use both the function name and its arity to describe functions throughout the documentation. trunc/1 identifies the function which is named trunc and takes 1




Flashcard 6731859102988

Tags
#elixir
Question
The arity of a function describes [...].
Answer
the number of arguments that the function takes

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
The arity of a function describes the number of arguments that the function takes.

Original toplevel document

Basic types - The Elixir programming language
on to get the integer part of a float. iex> round(3.58) 4 iex> trunc(3.58) 3 Identifying functions and documentation Functions in Elixir are identified by both their name and their arity. <span>The arity of a function describes the number of arguments that the function takes. From this point on we will use both the function name and its arity to describe functions throughout the documentation. trunc/1 identifies the function which is named trunc and takes 1







#elixir
trunc/1 identifies the function which is named trunc and takes 1 argument
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Basic types - The Elixir programming language
of a function describes the number of arguments that the function takes. From this point on we will use both the function name and its arity to describe functions throughout the documentation. <span>trunc/1 identifies the function which is named trunc and takes 1 argument, whereas trunc/2 identifies a different (nonexistent) function with the same name but with an arity of 2. We can also use this syntax to access documentation. The Elixir shell defines t




Flashcard 6731862773004

Tags
#elixir
Question
trunc/1 identifies the function which [...]
Answer
is named trunc and takes 1 argument

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
trunc/1 identifies the function which is named trunc and takes 1 argument

Original toplevel document

Basic types - The Elixir programming language
of a function describes the number of arguments that the function takes. From this point on we will use both the function name and its arity to describe functions throughout the documentation. <span>trunc/1 identifies the function which is named trunc and takes 1 argument, whereas trunc/2 identifies a different (nonexistent) function with the same name but with an arity of 2. We can also use this syntax to access documentation. The Elixir shell defines t







#elixir

The Elixir shell defines the h function, which you can use to access documentation for any function. For example, typing h trunc/1 is going to print the documentation for the trunc/1 function:

 iex > h trunc / 1 def trunc () Returns the integer part of number . 

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Basic types - The Elixir programming language
s named trunc and takes 1 argument, whereas trunc/2 identifies a different (nonexistent) function with the same name but with an arity of 2. We can also use this syntax to access documentation. <span>The Elixir shell defines the h function, which you can use to access documentation for any function. For example, typing h trunc/1 is going to print the documentation for the trunc/1 function: iex> h trunc/1 def trunc() Returns the integer part of number. h trunc/1 works because it is defined in the Kernel module. All functions in the Kernel module are automatically imported into our namespace. Most often you will also include the module




Flashcard 6731866443020

Tags
#elixir
Question
How do you access the documentation for any function?
Answer
With the h function. For example, typing h trunc/1 is going to print the documentation for the trunc/1 function.

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
The Elixir shell defines the h function, which you can use to access documentation for any function. For example, typing h trunc/1 is going to print the documentation for the trunc/1 function: iex > h trunc / 1 def trunc () Returns the integer part of number .

Original toplevel document

Basic types - The Elixir programming language
s named trunc and takes 1 argument, whereas trunc/2 identifies a different (nonexistent) function with the same name but with an arity of 2. We can also use this syntax to access documentation. <span>The Elixir shell defines the h function, which you can use to access documentation for any function. For example, typing h trunc/1 is going to print the documentation for the trunc/1 function: iex> h trunc/1 def trunc() Returns the integer part of number. h trunc/1 works because it is defined in the Kernel module. All functions in the Kernel module are automatically imported into our namespace. Most often you will also include the module







#elixir

Elixir provides a bunch of predicate functions to check for a value type. For example, the is_boolean/1 function can be used to check if a value is a boolean or not:


         
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Basic types - The Elixir programming language
splays the documentation for IEx.Helpers, which is where h and other functionality is defined. Booleans Elixir supports true and false as booleans: iex> true true iex> true == false false <span>Elixir provides a bunch of predicate functions to check for a value type. For example, the is_boolean/1 function can be used to check if a value is a boolean or not: iex> is_boolean(true) true iex> is_boolean(1) false You can also use is_integer/1, is_float/1 or is_number/1 to check, respectively, if an argument is an integer, a float, or eith




Flashcard 6731870899468

Tags
#elixir
Question
Which function can be used to check if a value is a boolean or not?
Answer
is_boolean/1

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Elixir provides a bunch of predicate functions to check for a value type. For example, the is_boolean/1 function can be used to check if a value is a boolean or not:

Original toplevel document

Basic types - The Elixir programming language
splays the documentation for IEx.Helpers, which is where h and other functionality is defined. Booleans Elixir supports true and false as booleans: iex> true true iex> true == false false <span>Elixir provides a bunch of predicate functions to check for a value type. For example, the is_boolean/1 function can be used to check if a value is a boolean or not: iex> is_boolean(true) true iex> is_boolean(1) false You can also use is_integer/1, is_float/1 or is_number/1 to check, respectively, if an argument is an integer, a float, or eith







#elixir
You can also use is_integer/1, is_float/1 or is_number/1 to check, respectively, if an argument is an integer, a float, or either.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Basic types - The Elixir programming language
dicate functions to check for a value type. For example, the is_boolean/1 function can be used to check if a value is a boolean or not: iex> is_boolean(true) true iex> is_boolean(1) false <span>You can also use is_integer/1, is_float/1 or is_number/1 to check, respectively, if an argument is an integer, a float, or either. Atoms An atom is a constant whose value is its own name. Some other languages call these symbols. They are often useful to enumerate over distinct values, such as: iex> :apple :apple




Flashcard 6731875355916

Tags
#elixir
Question
You can also use [...] to check, respectively, if an argument is an integer, a float, or either.
Answer
is_integer/1, is_float/1 or is_number/1

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
You can also use is_integer/1, is_float/1 or is_number/1 to check, respectively, if an argument is an integer, a float, or either.

Original toplevel document

Basic types - The Elixir programming language
dicate functions to check for a value type. For example, the is_boolean/1 function can be used to check if a value is a boolean or not: iex> is_boolean(true) true iex> is_boolean(1) false <span>You can also use is_integer/1, is_float/1 or is_number/1 to check, respectively, if an argument is an integer, a float, or either. Atoms An atom is a constant whose value is its own name. Some other languages call these symbols. They are often useful to enumerate over distinct values, such as: iex> :apple :apple







#elixir

Strings in Elixir are delimited by double quotes, and they are encoded in UTF-8:


         
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Basic types - The Elixir programming language
or the atoms false, true and nil. Finally, Elixir has a construct called aliases which we will explore later. Aliases start in upper case and are also atoms: iex> is_atom(Hello) true Strings <span>Strings in Elixir are delimited by double quotes, and they are encoded in UTF-8: iex> "hellö" "hellö" Note: if you are running on Windows, there is a chance your terminal does not use UTF-8 by default. You can change the encoding of your current session by runnin




Flashcard 6731879550220

Tags
#elixir
Question

Strings in Elixir are delimited by double quotes, and they are encoded in [...]:

Answer
UTF-8

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Strings in Elixir are delimited by double quotes, and they are encoded in UTF-8:

Original toplevel document

Basic types - The Elixir programming language
or the atoms false, true and nil. Finally, Elixir has a construct called aliases which we will explore later. Aliases start in upper case and are also atoms: iex> is_atom(Hello) true Strings <span>Strings in Elixir are delimited by double quotes, and they are encoded in UTF-8: iex> "hellö" "hellö" Note: if you are running on Windows, there is a chance your terminal does not use UTF-8 by default. You can change the encoding of your current session by runnin







#elixir

Elixir also supports string interpolation:

 iex > string = :world iex > "hellö #{ string } " "hellö world" 
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Basic types - The Elixir programming language
ote: if you are running on Windows, there is a chance your terminal does not use UTF-8 by default. You can change the encoding of your current session by running chcp 65001 before entering IEx. <span>Elixir also supports string interpolation: iex> string = :world iex> "hellö #{string}" "hellö world" Strings can have line breaks in them. You can introduce them using escape sequences: iex> "hello ...> world" "hello\nworld" iex> "hello\nworld" "hello\nworld" You can print a s




#elixir
You can print a string using the IO.puts/1 function
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Basic types - The Elixir programming language
#{string}" "hellö world" Strings can have line breaks in them. You can introduce them using escape sequences: iex> "hello ...> world" "hello\nworld" iex> "hello\nworld" "hello\nworld" <span>You can print a string using the IO.puts/1 function from the IO module: iex> IO.puts("hello\nworld") hello world :ok Notice that the IO.puts/1 function returns the atom :ok after printing. Strings in Elixir are represented internally




#elixir

Strings in Elixir are represented internally by contiguous sequences of bytes known as binaries:

 iex > is_binary ( "hellö" ) true 
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Basic types - The Elixir programming language
" You can print a string using the IO.puts/1 function from the IO module: iex> IO.puts("hello\nworld") hello world :ok Notice that the IO.puts/1 function returns the atom :ok after printing. <span>Strings in Elixir are represented internally by contiguous sequences of bytes known as binaries: iex> is_binary("hellö") true We can also get the number of bytes in a string: iex> byte_size("hellö") 6 Notice that the number of bytes in that string is 6, even though it has 5 graphemes. That’s because the gra




#elixir

We can also get the number of bytes in a string:

 iex > byte_size ( "hellö" ) 6 

Notice that the number of bytes in that string is 6, even though it has 5 graphemes. That’s because the grapheme “ö” takes 2 bytes to be represented in UTF-8. We can get the actual length of the string, based on the number of graphemes, by using the String.length/1 function:

 iex > String . length ( "hellö" ) 5 
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Basic types - The Elixir programming language
that the IO.puts/1 function returns the atom :ok after printing. Strings in Elixir are represented internally by contiguous sequences of bytes known as binaries: iex> is_binary("hellö") true <span>We can also get the number of bytes in a string: iex> byte_size("hellö") 6 Notice that the number of bytes in that string is 6, even though it has 5 graphemes. That’s because the grapheme “ö” takes 2 bytes to be represented in UTF-8. We can get the actual length of the string, based on the number of graphemes, by using the String.length/1 function: iex> String.length("hellö") 5 The String module contains a bunch of functions that operate on strings as defined in the Unicode standard: iex> String.upcase("hellö") "HELLÖ" Anonymous functions Elixir also provid




#elixir
We can invoke anonymous functions by passing arguments to it. Note that a dot (.) between the variable and parentheses is required to invoke an anonymous function. The dot ensures there is no ambiguity between calling the anonymous function matched to a variable add and a named function add/2
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Basic types - The Elixir programming language
nd returns the result of a + b. The arguments are always on the left-hand side of -> and the code to be executed on the right-hand side. The anonymous function is stored in the variable add. <span>We can invoke anonymous functions by passing arguments to it. Note that a dot (.) between the variable and parentheses is required to invoke an anonymous function. The dot ensures there is no ambiguity between calling the anonymous function matched to a variable add and a named function add/2. We will write our own named functions when dealing with Modules and Functions. For now, just remember that Elixir makes a clear distinction between anonymous functions and named functi




Flashcard 6731891346700

Tags
#elixir
Question
We can invoke anonymous functions by passing arguments to it. Note that a dot (.) between the variable and parentheses is required to invoke an anonymous function. Why is that?
Answer
The dot ensures there is no ambiguity between calling the anonymous function matched to a variable add and a named function add/2.

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
We can invoke anonymous functions by passing arguments to it. Note that a dot (.) between the variable and parentheses is required to invoke an anonymous function. The dot ensures there is no ambiguity between calling the anonymous function matched to a variable add and a named function add/2

Original toplevel document

Basic types - The Elixir programming language
nd returns the result of a + b. The arguments are always on the left-hand side of -> and the code to be executed on the right-hand side. The anonymous function is stored in the variable add. <span>We can invoke anonymous functions by passing arguments to it. Note that a dot (.) between the variable and parentheses is required to invoke an anonymous function. The dot ensures there is no ambiguity between calling the anonymous function matched to a variable add and a named function add/2. We will write our own named functions when dealing with Modules and Functions. For now, just remember that Elixir makes a clear distinction between anonymous functions and named functi







#elixir

We can check if a function is of any given arity by using is_function/2:

 # check if add is a function that expects exactly 2 arguments iex > is_function ( add , 2 ) true # check if add is a function that expects exactly 1 argument iex > is_function ( add , 1 ) false 
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Basic types - The Elixir programming language
, just remember that Elixir makes a clear distinction between anonymous functions and named functions. Anonymous functions in Elixir are also identified by the number of arguments they receive. <span>We can check if a function is of any given arity by using is_function/2: # check if add is a function that expects exactly 2 arguments iex> is_function(add, 2) true # check if add is a function that expects exactly 1 argument iex> is_function(add, 1) false Finally, anonymous functions can also access variables that are in scope when the function is defined. This is typically refered to as closures, as they close over their scope. Let’s de




Flashcard 6731896327436

Tags
#elixir
Question
We can check if a function is of any given arity by using [...]:
Answer

is_function/2

 # check if add is a function that expects exactly 2 arguments iex > is_function ( add , 2 ) true # check if add is a function that expects exactly 1 argument iex > is_function ( add , 1 ) false 

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
We can check if a function is of any given arity by using is_function/2: # check if add is a function that expects exactly 2 arguments iex > is_function ( add , 2 ) true # check if add is a function that expects exactly 1 argument iex > is_function (

Original toplevel document

Basic types - The Elixir programming language
, just remember that Elixir makes a clear distinction between anonymous functions and named functions. Anonymous functions in Elixir are also identified by the number of arguments they receive. <span>We can check if a function is of any given arity by using is_function/2: # check if add is a function that expects exactly 2 arguments iex> is_function(add, 2) true # check if add is a function that expects exactly 1 argument iex> is_function(add, 1) false Finally, anonymous functions can also access variables that are in scope when the function is defined. This is typically refered to as closures, as they close over their scope. Let’s de