-
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.
update exercise objects ready for review
- Loading branch information
1 parent
0e5cd9f
commit 5fad11b
Showing
42 changed files
with
755 additions
and
608 deletions.
There are no files selected for viewing
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
32 changes: 16 additions & 16 deletions
32
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$~~ & G & anger ett specifikt datavärde \\ | ||
sträng & 2 & ~~\Large$\leadsto$~~ & K & en sekvens av tecken \\ | ||
sats & 3 & ~~\Large$\leadsto$~~ & C & en kodrad som gör något; kan särskiljas med semikolon \\ | ||
uttryck & 4 & ~~\Large$\leadsto$~~ & B & kombinerar värden och funktioner till ett nytt värde \\ | ||
funktion & 5 & ~~\Large$\leadsto$~~ & P & vid anrop beräknas ett returvärde \\ | ||
procedur & 6 & ~~\Large$\leadsto$~~ & L & vid anrop sker (sido)effekt; returvärdet är tomt \\ | ||
exekveringsfel & 7 & ~~\Large$\leadsto$~~ & M & sker medan programmet kör \\ | ||
kompileringsfel & 8 & ~~\Large$\leadsto$~~ & D & sker innan exekveringen startat \\ | ||
abstrahera & 9 & ~~\Large$\leadsto$~~ & F & att införa nya begrepp som förenklar kodningen \\ | ||
kompilera & 10 & ~~\Large$\leadsto$~~ & H & att översätta kod till exekverbar form \\ | ||
typ & 11 & ~~\Large$\leadsto$~~ & A & 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$~~ & I & bra då antalet repetitioner ej är bestämt i förväg \\ | ||
tilldelning & 14 & ~~\Large$\leadsto$~~ & N & för att ändra en variabels värde \\ | ||
flyttal & 15 & ~~\Large$\leadsto$~~ & J & decimaltal med begränsad noggrannhet \\ | ||
boolesk & 16 & ~~\Large$\leadsto$~~ & O & antingen sann eller falsk \\ | ||
litteral & 1 & ~~\Large$\leadsto$~~ & B & anger ett specifikt datavärde \\ | ||
sträng & 2 & ~~\Large$\leadsto$~~ & G & en sekvens av tecken \\ | ||
sats & 3 & ~~\Large$\leadsto$~~ & J & en kodrad som gör något; kan särskiljas med semikolon \\ | ||
uttryck & 4 & ~~\Large$\leadsto$~~ & K & kombinerar värden och funktioner till ett nytt värde \\ | ||
funktion & 5 & ~~\Large$\leadsto$~~ & D & 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$~~ & A & sker medan programmet kör \\ | ||
kompileringsfel & 8 & ~~\Large$\leadsto$~~ & L & sker innan exekveringen startat \\ | ||
abstrahera & 9 & ~~\Large$\leadsto$~~ & I & att införa nya begrepp som förenklar kodningen \\ | ||
kompilera & 10 & ~~\Large$\leadsto$~~ & O & att översätta kod till exekverbar form \\ | ||
typ & 11 & ~~\Large$\leadsto$~~ & F & beskriver vad data kan användas till \\ | ||
for-sats & 12 & ~~\Large$\leadsto$~~ & P & bra då antalet repetitioner är bestämt i förväg \\ | ||
while-sats & 13 & ~~\Large$\leadsto$~~ & N & bra då antalet repetitioner ej är bestämt i förväg \\ | ||
tilldelning & 14 & ~~\Large$\leadsto$~~ & M & för att ändra en variabels värde \\ | ||
flyttal & 15 & ~~\Large$\leadsto$~~ & C & decimaltal med begränsad noggrannhet \\ | ||
boolesk & 16 & ~~\Large$\leadsto$~~ & H & antingen sann eller falsk \\ |
32 changes: 16 additions & 16 deletions
32
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 & beskriver vad data kan användas till \\ | ||
sträng & 2 & & B & kombinerar värden och funktioner till ett nytt värde \\ | ||
sats & 3 & & C & en kodrad som gör något; kan särskiljas med semikolon \\ | ||
uttryck & 4 & & D & sker innan exekveringen startat \\ | ||
funktion & 5 & & E & bra då antalet repetitioner är bestämt i förväg \\ | ||
procedur & 6 & & F & att införa nya begrepp som förenklar kodningen \\ | ||
exekveringsfel & 7 & & G & anger ett specifikt datavärde \\ | ||
kompileringsfel & 8 & & H & att översätta kod till exekverbar form \\ | ||
abstrahera & 9 & & I & bra då antalet repetitioner ej är bestämt i förväg \\ | ||
kompilera & 10 & & J & decimaltal med begränsad noggrannhet \\ | ||
typ & 11 & & K & en sekvens av tecken \\ | ||
for-sats & 12 & & L & vid anrop sker (sido)effekt; returvärdet är tomt \\ | ||
while-sats & 13 & & M & sker medan programmet kör \\ | ||
tilldelning & 14 & & N & för att ändra en variabels värde \\ | ||
flyttal & 15 & & O & antingen sann eller falsk \\ | ||
boolesk & 16 & & P & vid anrop beräknas ett returvärde \\ | ||
litteral & 1 & & A & sker medan programmet kör \\ | ||
sträng & 2 & & B & anger ett specifikt datavärde \\ | ||
sats & 3 & & C & decimaltal med begränsad noggrannhet \\ | ||
uttryck & 4 & & D & vid anrop beräknas ett returvärde \\ | ||
funktion & 5 & & E & vid anrop sker (sido)effekt; returvärdet är tomt \\ | ||
procedur & 6 & & F & beskriver vad data kan användas till \\ | ||
exekveringsfel & 7 & & G & en sekvens av tecken \\ | ||
kompileringsfel & 8 & & H & antingen sann eller falsk \\ | ||
abstrahera & 9 & & I & att införa nya begrepp som förenklar kodningen \\ | ||
kompilera & 10 & & J & en kodrad som gör något; kan särskiljas med semikolon \\ | ||
typ & 11 & & K & kombinerar värden och funktioner till ett nytt värde \\ | ||
for-sats & 12 & & L & sker innan exekveringen startat \\ | ||
while-sats & 13 & & M & för att ändra en variabels värde \\ | ||
tilldelning & 14 & & N & bra då antalet repetitioner ej är bestämt i förväg \\ | ||
flyttal & 15 & & O & att översätta kod till exekverbar form \\ | ||
boolesk & 16 & & P & bra då antalet repetitioner är bestämt i förväg \\ |
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$~~ & C & \code| 0: Int | \\ | ||
\code| 42.0 / 2 | & 2 & ~~\Large$\leadsto$~~ & B & \code| 10.5: Double | \\ | ||
\code| 42 / 4 | & 3 & ~~\Large$\leadsto$~~ & F & \code| 10: Int | \\ | ||
\code| 42 % 4 | & 4 & ~~\Large$\leadsto$~~ & G & \code| 2: Int | \\ | ||
\code| 4 % 42 | & 5 & ~~\Large$\leadsto$~~ & D & \code| 4: Int | \\ | ||
\code| 40 % 4 == 0 | & 6 & ~~\Large$\leadsto$~~ & E & \code|true : Boolean | \\ | ||
\code| 42 % 4 == 0 | & 7 & ~~\Large$\leadsto$~~ & A & \code|false: Boolean | \\ | ||
\code| 4 / 42 | & 1 & ~~\Large$\leadsto$~~ & G & \code| 0: Int | \\ | ||
\code| 42.0 / 2 | & 2 & ~~\Large$\leadsto$~~ & D & \code| 10.5: 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$~~ & B & \code| 4: Int | \\ | ||
\code| 40 % 4 == 0 | & 6 & ~~\Large$\leadsto$~~ & C & \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|false: Boolean | \\ | ||
\code| 42.0 / 2 | & 2 & & B & \code| 10.5: Double | \\ | ||
\code| 42 / 4 | & 3 & & C & \code| 0: Int | \\ | ||
\code| 42 % 4 | & 4 & & D & \code| 4: Int | \\ | ||
\code| 4 % 42 | & 5 & & E & \code|true : Boolean | \\ | ||
\code| 40 % 4 == 0 | & 6 & & F & \code| 10: Int | \\ | ||
\code| 42 % 4 == 0 | & 7 & & G & \code| 2: Int | \\ | ||
\code| 4 / 42 | & 1 & & A & \code| 10: Int | \\ | ||
\code| 42.0 / 2 | & 2 & & B & \code| 4: Int | \\ | ||
\code| 42 / 4 | & 3 & & C & \code|true : Boolean | \\ | ||
\code| 42 % 4 | & 4 & & D & \code| 10.5: Double | \\ | ||
\code| 4 % 42 | & 5 & & E & \code|false: Boolean | \\ | ||
\code| 40 % 4 == 0 | & 6 & & F & \code| 2: Int | \\ | ||
\code| 42 % 4 == 0 | & 7 & & G & \code| 0: Int | \\ |
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$~~ & B & \code|Int | \\ | ||
\code|1L | & 2 & ~~\Large$\leadsto$~~ & J & \code|Long | \\ | ||
\code|1.0 | & 3 & ~~\Large$\leadsto$~~ & E & \code|Double | \\ | ||
\code|1D | & 4 & ~~\Large$\leadsto$~~ & F & \code|Double | \\ | ||
\code|1 | & 1 & ~~\Large$\leadsto$~~ & F & \code|Int | \\ | ||
\code|1L | & 2 & ~~\Large$\leadsto$~~ & B & \code|Long | \\ | ||
\code|1.0 | & 3 & ~~\Large$\leadsto$~~ & I & \code|Double | \\ | ||
\code|1D | & 4 & ~~\Large$\leadsto$~~ & H & \code|Double | \\ | ||
\code|1F | & 5 & ~~\Large$\leadsto$~~ & A & \code|Float | \\ | ||
\code|'1' | & 6 & ~~\Large$\leadsto$~~ & I & \code|Char | \\ | ||
\code|"1"| & 7 & ~~\Large$\leadsto$~~ & G & \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 | \\ | ||
\code|'1' | & 6 & ~~\Large$\leadsto$~~ & D & \code|Char | \\ | ||
\code|"1"| & 7 & ~~\Large$\leadsto$~~ & C & \code|String | \\ | ||
\code|true | & 8 & ~~\Large$\leadsto$~~ & E & \code|Boolean| \\ | ||
\code|false| & 9 & ~~\Large$\leadsto$~~ & J & \code|Boolean| \\ | ||
\code|() | & 10 & ~~\Large$\leadsto$~~ & G & \code|Unit | \\ |
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|Float | \\ | ||
\code|1L | & 2 & & B & \code|Int | \\ | ||
\code|1.0 | & 3 & & C & \code|Boolean| \\ | ||
\code|1D | & 4 & & D & \code|Unit | \\ | ||
\code|1F | & 5 & & E & \code|Double | \\ | ||
\code|'1' | & 6 & & F & \code|Double | \\ | ||
\code|"1"| & 7 & & G & \code|String | \\ | ||
\code|true | & 8 & & H & \code|Boolean| \\ | ||
\code|false| & 9 & & I & \code|Char | \\ | ||
\code|() | & 10 & & J & \code|Long | \\ | ||
\code|1L | & 2 & & B & \code|Long | \\ | ||
\code|1.0 | & 3 & & C & \code|String | \\ | ||
\code|1D | & 4 & & D & \code|Char | \\ | ||
\code|1F | & 5 & & E & \code|Boolean| \\ | ||
\code|'1' | & 6 & & F & \code|Int | \\ | ||
\code|"1"| & 7 & & G & \code|Unit | \\ | ||
\code|true | & 8 & & H & \code|Double | \\ | ||
\code|false| & 9 & & I & \code|Double | \\ | ||
\code|() | & 10 & & J & \code|Boolean| \\ |
24 changes: 12 additions & 12 deletions
24
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$~~ & J & \code|19.0: Double | \\ | ||
\code|(41 + 1).toDouble | & 2 & ~~\Large$\leadsto$~~ & H & \code|42.0: Double | \\ | ||
\code|1.042e42 + 1 | & 3 & ~~\Large$\leadsto$~~ & C & \code|1.042E42: Double| \\ | ||
\code|12E6.toLong | & 4 & ~~\Large$\leadsto$~~ & I & \code|12000000: Long | \\ | ||
\code|32.toChar.toString| & 5 & ~~\Large$\leadsto$~~ & E & \code|" ": String | \\ | ||
\code|'A'.toInt | & 6 & ~~\Large$\leadsto$~~ & K & \code|65: Int | \\ | ||
\code|0.toInt | & 7 & ~~\Large$\leadsto$~~ & F & \code|0: Int | \\ | ||
\code|'0'.toInt | & 8 & ~~\Large$\leadsto$~~ & G & \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$~~ & L & \code|'q': Char | \\ | ||
\code|"*!%#".charAt(0)| & 12 & ~~\Large$\leadsto$~~ & D & \code|'*': Char | \\ | ||
\code|1.0 + 18 | & 1 & ~~\Large$\leadsto$~~ & C & \code|19.0: Double | \\ | ||
\code|(41 + 1).toDouble | & 2 & ~~\Large$\leadsto$~~ & A & \code|42.0: Double | \\ | ||
\code|1.042e42 + 1 | & 3 & ~~\Large$\leadsto$~~ & H & \code|1.042E42: Double| \\ | ||
\code|12E6.toLong | & 4 & ~~\Large$\leadsto$~~ & D & \code|12000000: Long | \\ | ||
\code|32.toChar.toString| & 5 & ~~\Large$\leadsto$~~ & G & \code|" ": String | \\ | ||
\code|'A'.toInt | & 6 & ~~\Large$\leadsto$~~ & B & \code|65: Int | \\ | ||
\code|0.toInt | & 7 & ~~\Large$\leadsto$~~ & K & \code|0: Int | \\ | ||
\code|'0'.toInt | & 8 & ~~\Large$\leadsto$~~ & F & \code|48: Int | \\ | ||
\code|'9'.toInt | & 9 & ~~\Large$\leadsto$~~ & L & \code|57: Int | \\ | ||
\code|'A' + '0' | & 10 & ~~\Large$\leadsto$~~ & J & \code|113: Int | \\ | ||
\code|('A' + '0').toChar| & 11 & ~~\Large$\leadsto$~~ & I & \code|'q': Char | \\ | ||
\code|"*!%#".charAt(0)| & 12 & ~~\Large$\leadsto$~~ & E & \code|'*': Char | \\ |
24 changes: 12 additions & 12 deletions
24
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|1.042E42: Double| \\ | ||
\code|12E6.toLong | & 4 & & D & \code|'*': Char | \\ | ||
\code|32.toChar.toString| & 5 & & E & \code|" ": String | \\ | ||
\code|'A'.toInt | & 6 & & F & \code|0: Int | \\ | ||
\code|0.toInt | & 7 & & G & \code|48: Int | \\ | ||
\code|'0'.toInt | & 8 & & H & \code|42.0: Double | \\ | ||
\code|'9'.toInt | & 9 & & I & \code|12000000: Long | \\ | ||
\code|'A' + '0' | & 10 & & J & \code|19.0: Double | \\ | ||
\code|('A' + '0').toChar| & 11 & & K & \code|65: Int | \\ | ||
\code|"*!%#".charAt(0)| & 12 & & L & \code|'q': Char | \\ | ||
\code|1.0 + 18 | & 1 & & A & \code|42.0: Double | \\ | ||
\code|(41 + 1).toDouble | & 2 & & B & \code|65: Int | \\ | ||
\code|1.042e42 + 1 | & 3 & & C & \code|19.0: Double | \\ | ||
\code|12E6.toLong | & 4 & & D & \code|12000000: Long | \\ | ||
\code|32.toChar.toString| & 5 & & E & \code|'*': Char | \\ | ||
\code|'A'.toInt | & 6 & & F & \code|48: Int | \\ | ||
\code|0.toInt | & 7 & & G & \code|" ": String | \\ | ||
\code|'0'.toInt | & 8 & & H & \code|1.042E42: Double| \\ | ||
\code|'9'.toInt | & 9 & & I & \code|'q': Char | \\ | ||
\code|'A' + '0' | & 10 & & J & \code|113: Int | \\ | ||
\code|('A' + '0').toChar| & 11 & & K & \code|0: Int | \\ | ||
\code|"*!%#".charAt(0)| & 12 & & L & \code|57: Int | \\ |
2 changes: 1 addition & 1 deletion
2
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 samlingar kollar \code|==| ej innehållslikhet \\ | ||
Array & 2 & ~~\Large$\leadsto$~~ & B & olikt andra Scala-samlingar kollar \code|==| ej innehållslikhet \\ |
2 changes: 1 addition & 1 deletion
2
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 samlingar kollar \code|==| ej innehållslikhet \\ | ||
Array & 2 & & B & olikt andra Scala-samlingar kollar \code|==| ej innehållslikhet \\ |
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$~~ & B & oföränderlig \\ | ||
Array & 2 & ~~\Large$\leadsto$~~ & A & förändringsbar \\ | ||
Vector & 1 & ~~\Large$\leadsto$~~ & A & oföränderlig \\ | ||
Array & 2 & ~~\Large$\leadsto$~~ & B & 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 & förändringsbar \\ | ||
Array & 2 & & B & oföränderlig \\ | ||
Vector & 1 & & A & oföränderlig \\ | ||
Array & 2 & & B & förändringsbar \\ |
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$~~ & J & ny referens till sekvens av längd 1 \\ | ||
\code|Array.fill(9)(0) | & 2 & ~~\Large$\leadsto$~~ & E & ny förändringsbar sekvens med nollor \\ | ||
\code|val xs = Vector(2) | & 1 & ~~\Large$\leadsto$~~ & B & ny referens till sekvens av längd 1 \\ | ||
\code|Array.fill(9)(0) | & 2 & ~~\Large$\leadsto$~~ & H & ny förändringsbar sekvens med nollor \\ | ||
\code|Vector.fill(9)(' ')| & 3 & ~~\Large$\leadsto$~~ & C & ny oföränderlig sekvens med blanktecken \\ | ||
\code|xs(0) | & 4 & ~~\Large$\leadsto$~~ & I & förkortad skrivning av \code|apply(0)| \\ | ||
\code|xs.apply(0) | & 5 & ~~\Large$\leadsto$~~ & F & indexering, ger första elementet \\ | ||
\code|xs :+ 0 | & 6 & ~~\Large$\leadsto$~~ & D & ny samling med en nolla tillagd på slutet \\ | ||
\code|0 +: xs | & 7 & ~~\Large$\leadsto$~~ & A & ny samling med en nolla tillagd i början \\ | ||
\code|xs.mkString | & 8 & ~~\Large$\leadsto$~~ & G & ny sträng med alla element intill varandra \\ | ||
\code|xs.mkString(",") | & 9 & ~~\Large$\leadsto$~~ & H & ny sträng med komma mellan elementen \\ | ||
\code|xs.map(_.toString))| & 10 & ~~\Large$\leadsto$~~ & B & ny samling, elementen omgjorda till strängar \\ | ||
\code|xs.map(_.toInt)) | & 11 & ~~\Large$\leadsto$~~ & K & ny samling, elementen omgjorda till heltal \\ | ||
\code|xs(0) | & 4 & ~~\Large$\leadsto$~~ & G & 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$~~ & I & ny samling med en nolla tillagd i början \\ | ||
\code|xs.mkString | & 8 & ~~\Large$\leadsto$~~ & F & ny sträng med alla element intill varandra \\ | ||
\code|xs.mkString(",") | & 9 & ~~\Large$\leadsto$~~ & D & ny sträng med komma mellan elementen \\ | ||
\code|xs.map(_.toString))| & 10 & ~~\Large$\leadsto$~~ & J & ny samling, elementen omgjorda till strängar \\ | ||
\code|xs.map(_.toInt)) | & 11 & ~~\Large$\leadsto$~~ & A & 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 & ny samling med en nolla tillagd i början \\ | ||
\code|Array.fill(9)(0) | & 2 & & B & ny samling, elementen omgjorda till strängar \\ | ||
\code|val xs = Vector(2) | & 1 & & A & ny samling, elementen omgjorda till heltal \\ | ||
\code|Array.fill(9)(0) | & 2 & & B & ny referens till sekvens av längd 1 \\ | ||
\code|Vector.fill(9)(' ')| & 3 & & C & ny oföränderlig sekvens med blanktecken \\ | ||
\code|xs(0) | & 4 & & D & ny samling med en nolla tillagd på slutet \\ | ||
\code|xs.apply(0) | & 5 & & E & ny förändringsbar sekvens med nollor \\ | ||
\code|xs :+ 0 | & 6 & & F & indexering, ger första elementet \\ | ||
\code|0 +: xs | & 7 & & G & ny sträng med alla element intill varandra \\ | ||
\code|xs.mkString | & 8 & & H & ny sträng med komma mellan elementen \\ | ||
\code|xs.mkString(",") | & 9 & & I & förkortad skrivning av \code|apply(0)| \\ | ||
\code|xs.map(_.toString))| & 10 & & J & ny referens till sekvens av längd 1 \\ | ||
\code|xs.map(_.toInt)) | & 11 & & K & ny samling, elementen omgjorda till heltal \\ | ||
\code|xs(0) | & 4 & & D & ny sträng med komma mellan elementen \\ | ||
\code|xs.apply(0) | & 5 & & E & indexering, ger första elementet \\ | ||
\code|xs :+ 0 | & 6 & & F & ny sträng med alla element intill varandra \\ | ||
\code|0 +: xs | & 7 & & G & förkortad skrivning av \code|apply(0)| \\ | ||
\code|xs.mkString | & 8 & & H & ny förändringsbar sekvens med nollor \\ | ||
\code|xs.mkString(",") | & 9 & & I & ny samling med en nolla tillagd i början \\ | ||
\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 \\ |
Oops, something went wrong.