-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c63887f
commit 1bc117f
Showing
64 changed files
with
641 additions
and
650 deletions.
There are no files selected for viewing
28 changes: 14 additions & 14 deletions
28
compendium/generated/quiz-w01-concepts-solurows-generated.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
litteral & 1 & ~~\Large$\leadsto$~~ & M & anger ett specifikt datavärde \\ | ||
sträng & 2 & ~~\Large$\leadsto$~~ & K & en sekvens av tecken \\ | ||
litteral & 1 & ~~\Large$\leadsto$~~ & N & anger ett specifikt datavärde \\ | ||
sträng & 2 & ~~\Large$\leadsto$~~ & I & en sekvens av tecken \\ | ||
sats & 3 & ~~\Large$\leadsto$~~ & F & en kodrad som gör något; kan särskiljas med semikolon \\ | ||
uttryck & 4 & ~~\Large$\leadsto$~~ & J & kombinerar värden och funktioner till ett nytt värde \\ | ||
funktion & 5 & ~~\Large$\leadsto$~~ & C & vid anrop beräknas ett returvärde \\ | ||
procedur & 6 & ~~\Large$\leadsto$~~ & P & vid anrop sker (sido)effekt; returvärdet är tomt \\ | ||
exekveringsfel & 7 & ~~\Large$\leadsto$~~ & A & kan inträffa medan programmet kör \\ | ||
kompileringsfel & 8 & ~~\Large$\leadsto$~~ & N & kan inträffa innan exekveringen startat \\ | ||
abstrahera & 9 & ~~\Large$\leadsto$~~ & L & att införa nya begrepp som förenklar kodningen \\ | ||
kompilera & 10 & ~~\Large$\leadsto$~~ & B & att översätta kod till exekverbar form \\ | ||
typ & 11 & ~~\Large$\leadsto$~~ & G & beskriver vad data kan användas till \\ | ||
for-sats & 12 & ~~\Large$\leadsto$~~ & E & bra då antalet repetitioner är bestämt i förväg \\ | ||
while-sats & 13 & ~~\Large$\leadsto$~~ & O & bra då antalet repetitioner ej är bestämt i förväg \\ | ||
tilldelning & 14 & ~~\Large$\leadsto$~~ & I & för att ändra en variabels värde \\ | ||
flyttal & 15 & ~~\Large$\leadsto$~~ & D & decimaltal med begränsad noggrannhet \\ | ||
uttryck & 4 & ~~\Large$\leadsto$~~ & P & kombinerar värden och funktioner till ett nytt värde \\ | ||
funktion & 5 & ~~\Large$\leadsto$~~ & M & vid anrop beräknas ett returvärde \\ | ||
procedur & 6 & ~~\Large$\leadsto$~~ & E & vid anrop sker (sido)effekt; returvärdet är tomt \\ | ||
exekveringsfel & 7 & ~~\Large$\leadsto$~~ & B & kan inträffa medan programmet kör \\ | ||
kompileringsfel & 8 & ~~\Large$\leadsto$~~ & K & kan inträffa innan exekveringen startat \\ | ||
abstrahera & 9 & ~~\Large$\leadsto$~~ & O & att införa nya begrepp som förenklar kodningen \\ | ||
kompilera & 10 & ~~\Large$\leadsto$~~ & G & att översätta kod till exekverbar form \\ | ||
typ & 11 & ~~\Large$\leadsto$~~ & A & beskriver vad data kan användas till \\ | ||
for-sats & 12 & ~~\Large$\leadsto$~~ & C & bra då antalet repetitioner är bestämt i förväg \\ | ||
while-sats & 13 & ~~\Large$\leadsto$~~ & J & bra då antalet repetitioner ej är bestämt i förväg \\ | ||
tilldelning & 14 & ~~\Large$\leadsto$~~ & D & för att ändra en variabels värde \\ | ||
flyttal & 15 & ~~\Large$\leadsto$~~ & L & decimaltal med begränsad noggrannhet \\ | ||
boolesk & 16 & ~~\Large$\leadsto$~~ & H & antingen sann eller falsk \\ |
28 changes: 14 additions & 14 deletions
28
compendium/generated/quiz-w01-concepts-taskrows-generated.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
litteral & 1 & & A & kan inträffa medan programmet kör \\ | ||
sträng & 2 & & B & att översätta kod till exekverbar form \\ | ||
sats & 3 & & C & vid anrop beräknas ett returvärde \\ | ||
uttryck & 4 & & D & decimaltal med begränsad noggrannhet \\ | ||
funktion & 5 & & E & bra då antalet repetitioner är bestämt i förväg \\ | ||
litteral & 1 & & A & beskriver vad data kan användas till \\ | ||
sträng & 2 & & B & kan inträffa medan programmet kör \\ | ||
sats & 3 & & C & bra då antalet repetitioner är bestämt i förväg \\ | ||
uttryck & 4 & & D & för att ändra en variabels värde \\ | ||
funktion & 5 & & E & vid anrop sker (sido)effekt; returvärdet är tomt \\ | ||
procedur & 6 & & F & en kodrad som gör något; kan särskiljas med semikolon \\ | ||
exekveringsfel & 7 & & G & beskriver vad data kan användas till \\ | ||
exekveringsfel & 7 & & G & att översätta kod till exekverbar form \\ | ||
kompileringsfel & 8 & & H & antingen sann eller falsk \\ | ||
abstrahera & 9 & & I & för att ändra en variabels värde \\ | ||
kompilera & 10 & & J & kombinerar värden och funktioner till ett nytt värde \\ | ||
typ & 11 & & K & en sekvens av tecken \\ | ||
for-sats & 12 & & L & att införa nya begrepp som förenklar kodningen \\ | ||
while-sats & 13 & & M & anger ett specifikt datavärde \\ | ||
tilldelning & 14 & & N & kan inträffa innan exekveringen startat \\ | ||
flyttal & 15 & & O & bra då antalet repetitioner ej är bestämt i förväg \\ | ||
boolesk & 16 & & P & vid anrop sker (sido)effekt; returvärdet är tomt \\ | ||
abstrahera & 9 & & I & en sekvens av tecken \\ | ||
kompilera & 10 & & J & bra då antalet repetitioner ej är bestämt i förväg \\ | ||
typ & 11 & & K & kan inträffa innan exekveringen startat \\ | ||
for-sats & 12 & & L & decimaltal med begränsad noggrannhet \\ | ||
while-sats & 13 & & M & vid anrop beräknas ett returvärde \\ | ||
tilldelning & 14 & & N & anger ett specifikt datavärde \\ | ||
flyttal & 15 & & O & att införa nya begrepp som förenklar kodningen \\ | ||
boolesk & 16 & & P & kombinerar värden och funktioner till ett nytt värde \\ |
14 changes: 7 additions & 7 deletions
14
compendium/generated/quiz-w01-intdiv-solurows-generated.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
\code| 4 / 42 | & 1 & ~~\Large$\leadsto$~~ & E & \code| 0: Int | \\ | ||
\code| 42.0 / 2 | & 2 & ~~\Large$\leadsto$~~ & F & \code| 21.0: Double | \\ | ||
\code| 42 / 4 | & 3 & ~~\Large$\leadsto$~~ & C & \code| 10: Int | \\ | ||
\code| 42 % 4 | & 4 & ~~\Large$\leadsto$~~ & B & \code| 2: Int | \\ | ||
\code| 4 % 42 | & 5 & ~~\Large$\leadsto$~~ & D & \code| 4: Int | \\ | ||
\code| 40 % 4 == 0 | & 6 & ~~\Large$\leadsto$~~ & A & \code|true : Boolean | \\ | ||
\code| 42 % 4 == 0 | & 7 & ~~\Large$\leadsto$~~ & G & \code|false: Boolean | \\ | ||
\code| 4 / 42 | & 1 & ~~\Large$\leadsto$~~ & D & \code| 0: Int | \\ | ||
\code| 42.0 / 2 | & 2 & ~~\Large$\leadsto$~~ & G & \code| 21.0: Double | \\ | ||
\code| 42 / 4 | & 3 & ~~\Large$\leadsto$~~ & A & \code| 10: Int | \\ | ||
\code| 42 % 4 | & 4 & ~~\Large$\leadsto$~~ & F & \code| 2: Int | \\ | ||
\code| 4 % 42 | & 5 & ~~\Large$\leadsto$~~ & C & \code| 4: Int | \\ | ||
\code| 40 % 4 == 0 | & 6 & ~~\Large$\leadsto$~~ & B & \code|true : Boolean | \\ | ||
\code| 42 % 4 == 0 | & 7 & ~~\Large$\leadsto$~~ & E & \code|false: Boolean | \\ |
14 changes: 7 additions & 7 deletions
14
compendium/generated/quiz-w01-intdiv-taskrows-generated.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
\code| 4 / 42 | & 1 & & A & \code|true : Boolean | \\ | ||
\code| 42.0 / 2 | & 2 & & B & \code| 2: Int | \\ | ||
\code| 42 / 4 | & 3 & & C & \code| 10: Int | \\ | ||
\code| 42 % 4 | & 4 & & D & \code| 4: Int | \\ | ||
\code| 4 % 42 | & 5 & & E & \code| 0: Int | \\ | ||
\code| 40 % 4 == 0 | & 6 & & F & \code| 21.0: Double | \\ | ||
\code| 42 % 4 == 0 | & 7 & & G & \code|false: Boolean | \\ | ||
\code| 4 / 42 | & 1 & & A & \code| 10: Int | \\ | ||
\code| 42.0 / 2 | & 2 & & B & \code|true : Boolean | \\ | ||
\code| 42 / 4 | & 3 & & C & \code| 4: Int | \\ | ||
\code| 42 % 4 | & 4 & & D & \code| 0: Int | \\ | ||
\code| 4 % 42 | & 5 & & E & \code|false: Boolean | \\ | ||
\code| 40 % 4 == 0 | & 6 & & F & \code| 2: Int | \\ | ||
\code| 42 % 4 == 0 | & 7 & & G & \code| 21.0: Double | \\ |
20 changes: 10 additions & 10 deletions
20
compendium/generated/quiz-w01-types-solurows-generated.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
\code|1 | & 1 & ~~\Large$\leadsto$~~ & I & \code|Int | \\ | ||
\code|1L | & 2 & ~~\Large$\leadsto$~~ & F & \code|Long | \\ | ||
\code|1.0 | & 3 & ~~\Large$\leadsto$~~ & J & \code|Double | \\ | ||
\code|1D | & 4 & ~~\Large$\leadsto$~~ & E & \code|Double | \\ | ||
\code|1F | & 5 & ~~\Large$\leadsto$~~ & H & \code|Float | \\ | ||
\code|'1' | & 6 & ~~\Large$\leadsto$~~ & D & \code|Char | \\ | ||
\code|"1"| & 7 & ~~\Large$\leadsto$~~ & C & \code|String | \\ | ||
\code|true | & 8 & ~~\Large$\leadsto$~~ & A & \code|Boolean| \\ | ||
\code|false| & 9 & ~~\Large$\leadsto$~~ & B & \code|Boolean| \\ | ||
\code|() | & 10 & ~~\Large$\leadsto$~~ & G & \code|Unit | \\ | ||
\code|1 | & 1 & ~~\Large$\leadsto$~~ & J & \code|Int | \\ | ||
\code|1L | & 2 & ~~\Large$\leadsto$~~ & B & \code|Long | \\ | ||
\code|1.0 | & 3 & ~~\Large$\leadsto$~~ & G & \code|Double | \\ | ||
\code|1D | & 4 & ~~\Large$\leadsto$~~ & F & \code|Double | \\ | ||
\code|1F | & 5 & ~~\Large$\leadsto$~~ & A & \code|Float | \\ | ||
\code|'1' | & 6 & ~~\Large$\leadsto$~~ & E & \code|Char | \\ | ||
\code|"1"| & 7 & ~~\Large$\leadsto$~~ & I & \code|String | \\ | ||
\code|true | & 8 & ~~\Large$\leadsto$~~ & C & \code|Boolean| \\ | ||
\code|false| & 9 & ~~\Large$\leadsto$~~ & H & \code|Boolean| \\ | ||
\code|() | & 10 & ~~\Large$\leadsto$~~ & D & \code|Unit | \\ |
20 changes: 10 additions & 10 deletions
20
compendium/generated/quiz-w01-types-taskrows-generated.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
\code|1 | & 1 & & A & \code|Boolean| \\ | ||
\code|1L | & 2 & & B & \code|Boolean| \\ | ||
\code|1.0 | & 3 & & C & \code|String | \\ | ||
\code|1D | & 4 & & D & \code|Char | \\ | ||
\code|1F | & 5 & & E & \code|Double | \\ | ||
\code|'1' | & 6 & & F & \code|Long | \\ | ||
\code|"1"| & 7 & & G & \code|Unit | \\ | ||
\code|true | & 8 & & H & \code|Float | \\ | ||
\code|false| & 9 & & I & \code|Int | \\ | ||
\code|() | & 10 & & J & \code|Double | \\ | ||
\code|1 | & 1 & & A & \code|Float | \\ | ||
\code|1L | & 2 & & B & \code|Long | \\ | ||
\code|1.0 | & 3 & & C & \code|Boolean| \\ | ||
\code|1D | & 4 & & D & \code|Unit | \\ | ||
\code|1F | & 5 & & E & \code|Char | \\ | ||
\code|'1' | & 6 & & F & \code|Double | \\ | ||
\code|"1"| & 7 & & G & \code|Double | \\ | ||
\code|true | & 8 & & H & \code|Boolean| \\ | ||
\code|false| & 9 & & I & \code|String | \\ | ||
\code|() | & 10 & & J & \code|Int | \\ |
20 changes: 10 additions & 10 deletions
20
compendium/generated/quiz-w01-values-solurows-generated.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
\code|1.0 + 18 | & 1 & ~~\Large$\leadsto$~~ & L & \code|19.0: Double | \\ | ||
\code|(41 + 1).toDouble | & 2 & ~~\Large$\leadsto$~~ & D & \code|42.0: Double | \\ | ||
\code|1.042e42 + 1 | & 3 & ~~\Large$\leadsto$~~ & H & \code|1.042E42: Double| \\ | ||
\code|1.0 + 18 | & 1 & ~~\Large$\leadsto$~~ & D & \code|19.0: Double | \\ | ||
\code|(41 + 1).toDouble | & 2 & ~~\Large$\leadsto$~~ & L & \code|42.0: Double | \\ | ||
\code|1.042e42 + 1 | & 3 & ~~\Large$\leadsto$~~ & I & \code|1.042E42: Double| \\ | ||
\code|12E6.toLong | & 4 & ~~\Large$\leadsto$~~ & E & \code|12000000: Long | \\ | ||
\code|32.toChar.toString| & 5 & ~~\Large$\leadsto$~~ & C & \code|" ": String | \\ | ||
\code|'A'.toInt | & 6 & ~~\Large$\leadsto$~~ & J & \code|65: Int | \\ | ||
\code|0.toInt | & 7 & ~~\Large$\leadsto$~~ & F & \code|0: Int | \\ | ||
\code|'0'.toInt | & 8 & ~~\Large$\leadsto$~~ & I & \code|48: Int | \\ | ||
\code|'9'.toInt | & 9 & ~~\Large$\leadsto$~~ & A & \code|57: Int | \\ | ||
\code|'A' + '0' | & 10 & ~~\Large$\leadsto$~~ & B & \code|113: Int | \\ | ||
\code|('A' + '0').toChar| & 11 & ~~\Large$\leadsto$~~ & K & \code|'q': Char | \\ | ||
\code|32.toChar.toString| & 5 & ~~\Large$\leadsto$~~ & H & \code|" ": String | \\ | ||
\code|'A'.toInt | & 6 & ~~\Large$\leadsto$~~ & K & \code|65: Int | \\ | ||
\code|0.toInt | & 7 & ~~\Large$\leadsto$~~ & J & \code|0: Int | \\ | ||
\code|'0'.toInt | & 8 & ~~\Large$\leadsto$~~ & C & \code|48: Int | \\ | ||
\code|'9'.toInt | & 9 & ~~\Large$\leadsto$~~ & B & \code|57: Int | \\ | ||
\code|'A' + '0' | & 10 & ~~\Large$\leadsto$~~ & F & \code|113: Int | \\ | ||
\code|('A' + '0').toChar| & 11 & ~~\Large$\leadsto$~~ & A & \code|'q': Char | \\ | ||
\code|"*!%#".charAt(0)| & 12 & ~~\Large$\leadsto$~~ & G & \code|'*': Char | \\ |
20 changes: 10 additions & 10 deletions
20
compendium/generated/quiz-w01-values-taskrows-generated.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
\code|1.0 + 18 | & 1 & & A & \code|57: Int | \\ | ||
\code|(41 + 1).toDouble | & 2 & & B & \code|113: Int | \\ | ||
\code|1.042e42 + 1 | & 3 & & C & \code|" ": String | \\ | ||
\code|12E6.toLong | & 4 & & D & \code|42.0: Double | \\ | ||
\code|1.0 + 18 | & 1 & & A & \code|'q': Char | \\ | ||
\code|(41 + 1).toDouble | & 2 & & B & \code|57: Int | \\ | ||
\code|1.042e42 + 1 | & 3 & & C & \code|48: Int | \\ | ||
\code|12E6.toLong | & 4 & & D & \code|19.0: Double | \\ | ||
\code|32.toChar.toString| & 5 & & E & \code|12000000: Long | \\ | ||
\code|'A'.toInt | & 6 & & F & \code|0: Int | \\ | ||
\code|'A'.toInt | & 6 & & F & \code|113: Int | \\ | ||
\code|0.toInt | & 7 & & G & \code|'*': Char | \\ | ||
\code|'0'.toInt | & 8 & & H & \code|1.042E42: Double| \\ | ||
\code|'9'.toInt | & 9 & & I & \code|48: Int | \\ | ||
\code|'A' + '0' | & 10 & & J & \code|65: Int | \\ | ||
\code|('A' + '0').toChar| & 11 & & K & \code|'q': Char | \\ | ||
\code|"*!%#".charAt(0)| & 12 & & L & \code|19.0: Double | \\ | ||
\code|'0'.toInt | & 8 & & H & \code|" ": String | \\ | ||
\code|'9'.toInt | & 9 & & I & \code|1.042E42: Double| \\ | ||
\code|'A' + '0' | & 10 & & J & \code|0: Int | \\ | ||
\code|('A' + '0').toChar| & 11 & & K & \code|65: Int | \\ | ||
\code|"*!%#".charAt(0)| & 12 & & L & \code|42.0: Double | \\ |
4 changes: 2 additions & 2 deletions
4
compendium/generated/quiz-w02-array-vector-equality-solurows-generated.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Vector & 1 & ~~\Large$\leadsto$~~ & A & \code|xs == ys| är \code|true| om alla element lika \\ | ||
Array & 2 & ~~\Large$\leadsto$~~ & B & olikt andra Scala-samlingar kollar \code|==| ej innehållslikhet \\ | ||
Vector & 1 & ~~\Large$\leadsto$~~ & B & \code|xs == ys| är \code|true| om alla element lika \\ | ||
Array & 2 & ~~\Large$\leadsto$~~ & A & olikt andra Scala-samlingar kollar \code|==| ej innehållslikhet \\ |
4 changes: 2 additions & 2 deletions
4
compendium/generated/quiz-w02-array-vector-equality-taskrows-generated.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Vector & 1 & & A & \code|xs == ys| är \code|true| om alla element lika \\ | ||
Array & 2 & & B & olikt andra Scala-samlingar kollar \code|==| ej innehållslikhet \\ | ||
Vector & 1 & & A & olikt andra Scala-samlingar kollar \code|==| ej innehållslikhet \\ | ||
Array & 2 & & B & \code|xs == ys| är \code|true| om alla element lika \\ |
4 changes: 2 additions & 2 deletions
4
compendium/generated/quiz-w02-array-vector-mutability-solurows-generated.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Vector & 1 & ~~\Large$\leadsto$~~ & A & oföränderlig \\ | ||
Array & 2 & ~~\Large$\leadsto$~~ & B & förändringsbar \\ | ||
Vector & 1 & ~~\Large$\leadsto$~~ & B & oföränderlig \\ | ||
Array & 2 & ~~\Large$\leadsto$~~ & A & förändringsbar \\ |
4 changes: 2 additions & 2 deletions
4
compendium/generated/quiz-w02-array-vector-mutability-taskrows-generated.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Vector & 1 & & A & oföränderlig \\ | ||
Array & 2 & & B & förändringsbar \\ | ||
Vector & 1 & & A & förändringsbar \\ | ||
Array & 2 & & B & oföränderlig \\ |
20 changes: 10 additions & 10 deletions
20
compendium/generated/quiz-w02-collection-methods-solurows-generated.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
\code|val xs = Vector(2) | & 1 & ~~\Large$\leadsto$~~ & H & ny referens till sekvens av längd 1 \\ | ||
\code|Array.fill(9)(0) | & 2 & ~~\Large$\leadsto$~~ & F & ny förändringsbar sekvens med nollor \\ | ||
\code|Vector.fill(9)(' ')| & 3 & ~~\Large$\leadsto$~~ & G & ny oföränderlig sekvens med blanktecken \\ | ||
\code|xs(0) | & 4 & ~~\Large$\leadsto$~~ & A & förkortad skrivning av \code|apply(0)| \\ | ||
\code|xs.apply(0) | & 5 & ~~\Large$\leadsto$~~ & E & indexering, ger första elementet \\ | ||
\code|xs :+ 0 | & 6 & ~~\Large$\leadsto$~~ & K & ny samling med en nolla tillagd på slutet \\ | ||
\code|0 +: xs | & 7 & ~~\Large$\leadsto$~~ & D & ny samling med en nolla tillagd i början \\ | ||
\code|xs.mkString | & 8 & ~~\Large$\leadsto$~~ & C & ny sträng med alla element intill varandra \\ | ||
\code|xs.mkString(",") | & 9 & ~~\Large$\leadsto$~~ & B & ny sträng med komma mellan elementen \\ | ||
\code|xs.map(_.toString) | & 10 & ~~\Large$\leadsto$~~ & J & ny samling, elementen omgjorda till strängar \\ | ||
\code|val xs = Vector(2) | & 1 & ~~\Large$\leadsto$~~ & F & ny referens till sekvens av längd 1 \\ | ||
\code|Array.fill(9)(0) | & 2 & ~~\Large$\leadsto$~~ & A & ny förändringsbar sekvens med nollor \\ | ||
\code|Vector.fill(9)(' ')| & 3 & ~~\Large$\leadsto$~~ & J & ny oföränderlig sekvens med blanktecken \\ | ||
\code|xs(0) | & 4 & ~~\Large$\leadsto$~~ & B & förkortad skrivning av \code|apply(0)| \\ | ||
\code|xs.apply(0) | & 5 & ~~\Large$\leadsto$~~ & H & indexering, ger första elementet \\ | ||
\code|xs :+ 0 | & 6 & ~~\Large$\leadsto$~~ & G & ny samling med en nolla tillagd på slutet \\ | ||
\code|0 +: xs | & 7 & ~~\Large$\leadsto$~~ & C & ny samling med en nolla tillagd i början \\ | ||
\code|xs.mkString | & 8 & ~~\Large$\leadsto$~~ & D & ny sträng med alla element intill varandra \\ | ||
\code|xs.mkString(",") | & 9 & ~~\Large$\leadsto$~~ & K & ny sträng med komma mellan elementen \\ | ||
\code|xs.map(_.toString) | & 10 & ~~\Large$\leadsto$~~ & E & ny samling, elementen omgjorda till strängar \\ | ||
\code|xs map (_.toInt) | & 11 & ~~\Large$\leadsto$~~ & I & ny samling, elementen omgjorda till heltal \\ |
20 changes: 10 additions & 10 deletions
20
compendium/generated/quiz-w02-collection-methods-taskrows-generated.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
\code|val xs = Vector(2) | & 1 & & A & förkortad skrivning av \code|apply(0)| \\ | ||
\code|Array.fill(9)(0) | & 2 & & B & ny sträng med komma mellan elementen \\ | ||
\code|Vector.fill(9)(' ')| & 3 & & C & ny sträng med alla element intill varandra \\ | ||
\code|xs(0) | & 4 & & D & ny samling med en nolla tillagd i början \\ | ||
\code|xs.apply(0) | & 5 & & E & indexering, ger första elementet \\ | ||
\code|xs :+ 0 | & 6 & & F & ny förändringsbar sekvens med nollor \\ | ||
\code|0 +: xs | & 7 & & G & ny oföränderlig sekvens med blanktecken \\ | ||
\code|xs.mkString | & 8 & & H & ny referens till sekvens av längd 1 \\ | ||
\code|val xs = Vector(2) | & 1 & & A & ny förändringsbar sekvens med nollor \\ | ||
\code|Array.fill(9)(0) | & 2 & & B & förkortad skrivning av \code|apply(0)| \\ | ||
\code|Vector.fill(9)(' ')| & 3 & & C & ny samling med en nolla tillagd i början \\ | ||
\code|xs(0) | & 4 & & D & ny sträng med alla element intill varandra \\ | ||
\code|xs.apply(0) | & 5 & & E & ny samling, elementen omgjorda till strängar \\ | ||
\code|xs :+ 0 | & 6 & & F & ny referens till sekvens av längd 1 \\ | ||
\code|0 +: xs | & 7 & & G & ny samling med en nolla tillagd på slutet \\ | ||
\code|xs.mkString | & 8 & & H & indexering, ger första elementet \\ | ||
\code|xs.mkString(",") | & 9 & & I & ny samling, elementen omgjorda till heltal \\ | ||
\code|xs.map(_.toString) | & 10 & & J & ny samling, elementen omgjorda till strängar \\ | ||
\code|xs map (_.toInt) | & 11 & & K & ny samling med en nolla tillagd på slutet \\ | ||
\code|xs.map(_.toString) | & 10 & & J & ny oföränderlig sekvens med blanktecken \\ | ||
\code|xs map (_.toInt) | & 11 & & K & ny sträng med komma mellan elementen \\ |
Oops, something went wrong.