generated from admin/template
Начал lesson5
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
### IntelliJ IDEA ###
|
||||
out/
|
||||
!**/src/main/**/out/
|
||||
!**/src/test/**/out/
|
||||
|
||||
### Kotlin ###
|
||||
.kotlin
|
||||
|
||||
### Eclipse ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
bin/
|
||||
!**/src/main/**/bin/
|
||||
!**/src/test/**/bin/
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
|
||||
### Mac OS ###
|
||||
.DS_Store
|
||||
@@ -0,0 +1,17 @@
|
||||
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
|
||||
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
|
||||
fun main() {
|
||||
val hand = mapOf(
|
||||
"Pikachu" to "Pokemon",
|
||||
"Potion" to "Trainer",
|
||||
"Fire Energy" to "Energy",
|
||||
"Professor's Research" to "Trainer"
|
||||
)
|
||||
|
||||
val trainerCards = hand.filter { it.value == "Trainer" }
|
||||
val upperNames = hand.map { it.value }
|
||||
println(upperNames.joinToString(separator = ", "))
|
||||
|
||||
val energyToAttach = readln()
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user