Which of the following statements about functional programming is false?
a) You do not need to specify how to iterate through the elements or declare and use any
mutable (that is, modifiable) variables. This is known as internal iteration, because the
library code (behind the scenes) iterates through all the elements to perform the task.
b) A key aspect of functional programming is immutability—not modifying the data
source being processed or any other program state, such as counter-control variables in
loops. This eliminates common errors that are caused by modifying data incorrectly.
c) A filter operation combines the elements of a collection into a single new value,
typically using a lambda that specifies how to combine the elements.
d) A map operation results in a new collection in which each element of the original
collection is mapped to a new value (possibly of a different type). The new collection has
the same number of elements as the collection that was mapped.
c) A filter operation combines the elements of a collection into a single new value,
typically using a lambda that specifies how to combine the elements.
You might also like to view...
The Excel workspace is a grid of rows and columns.
Answer the following statement true (T) or false (F)
After a table has been added, you can insert new rows but not new columns
Indicate whether the statement is true or false
A corporate user will be using a smartphone to connect to the corporate network. What should the technician check first before configuring this connection?
A) Whether the device has tracking enabled B) Whether the device has unauthorized root access C) Whether the LoJack feature has been enabled D) Whether the TPM chip is installed and enabled
The Ethernet ____________________ is the time required to transmit 512 bits.
Fill in the blank(s) with the appropriate word(s).