├── Chapter01 ├── gradle_project │ ├── build.gradle │ ├── gradle.properties │ ├── gradlew │ ├── gradlew.bat │ ├── settings.gradle │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── programming │ │ │ └── kotlin │ │ │ └── chapter01 │ │ │ └── CarManufacturer.java │ │ └── kotlin │ │ └── com │ │ └── programming │ │ └── kotlin │ │ └── chapter01 │ │ ├── Program.kt │ │ ├── Student.java │ │ └── Task.kt └── maven-mix │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── programming │ │ │ └── kotlin │ │ │ └── CarManufacturer.java │ └── kotlin │ │ └── com │ │ └── programming │ │ └── kotlin │ │ ├── Hello.kt │ │ ├── Student.java │ │ └── Task.kt │ └── test │ └── kotlin │ └── com │ └── programming │ └── kotlin │ └── HelloTest.kt ├── Chapter02 └── src │ └── main │ ├── java │ ├── KotlinFromJava.java │ └── com │ │ └── packt │ │ └── chapter4 │ │ ├── OverloadsForDefaults.java │ │ └── ThrowsFromJava.java │ └── kotlin │ └── com │ └── packt │ ├── chapter2 │ ├── JavaCast.java │ ├── JavaIf.java │ ├── array.kt │ ├── basic_syntax.kt │ ├── bitwise.kt │ ├── boolean.kt │ ├── char.kt │ ├── col1.kt │ ├── comments.kt │ ├── controlflowasexpression.kt │ ├── equals.kt │ ├── exceptions.kt │ ├── explicitWidening.kt │ ├── forloop.kt │ ├── literals.kt │ ├── new.kt │ ├── null.kt │ ├── package.kt │ ├── private.kt │ ├── range1.kt │ ├── return.kt │ ├── smartcasts.kt │ ├── string.kt │ ├── stringconcat.kt │ ├── stringtemplate.kt │ ├── this.kt │ ├── when.kt │ └── while.kt │ ├── chapter4 │ ├── 4.1.kt │ ├── 4.10.kt │ ├── 4.11.operators.kt │ ├── 4.12.kt │ ├── 4.13.kt │ ├── 4.14.vararg.kt │ ├── 4.15.stdlib.kt │ ├── 4.16.genericfuncs.kt │ ├── 4.17.kt │ ├── 4.2.kt │ ├── 4.20.kt │ ├── 4.22.kotlin_from_java.kt │ ├── 4.3.kt │ ├── 4.4.kt │ ├── 4.5.kt │ ├── 4.6.kt │ ├── 4.7.defaults.kt │ ├── 4.8.kt │ ├── 4.9.kt │ ├── Matrix.java │ ├── Named.java │ ├── infix.kt │ ├── matrix.kt │ └── singlexpfun.kt │ ├── chapter5 │ ├── 5.1.HigherOrder.kt │ ├── 5.10.Memoization.kt │ ├── 5.11.Typealias.kt │ ├── 5.12.Either.kt │ ├── 5.13.CustomDsl.kt │ ├── 5.14.ErrorAccumulation.kt │ ├── 5.2.Closures.kt │ ├── 5.3.Anonymous.kt │ ├── 5.4.References.kt │ ├── 5.5.Receivers.kt │ ├── 5.7.Composition.kt │ ├── 5.8.Inline.kt │ └── 5.9.Currying.kt │ ├── myproject │ ├── constants │ │ └── import1.kt │ └── import2.kt │ └── otherproject │ └── Foo.kt ├── Chapter03 ├── inheritance │ ├── build.gradle │ ├── gradle.properties │ ├── gradlew │ ├── gradlew.bat │ ├── settings.gradle │ └── src │ │ └── main │ │ └── kotlin │ │ └── com │ │ └── programming │ │ └── kotlin │ │ └── chapter03 │ │ ├── A.kt │ │ ├── Abstract.kt │ │ ├── Airplane.kt │ │ ├── AmphibiousCar.kt │ │ ├── Base.kt │ │ ├── CardPayment.kt │ │ ├── CardType.kt │ │ ├── ChequePayment.kt │ │ ├── Container.kt │ │ ├── Document.kt │ │ ├── Image.kt │ │ ├── IntBinaryTreee.kt │ │ ├── Payment.kt │ │ ├── Program.kt │ │ ├── Singleton.kt │ │ ├── Static.kt │ │ └── Student.kt └── polymorphism │ ├── build.gradle │ ├── gradle.properties │ ├── gradlew │ ├── gradlew.bat │ ├── settings.gradle │ └── src │ └── main │ └── kotlin │ └── com │ └── programming │ └── kotlin │ └── chapter03 │ ├── Ellipsis.kt │ ├── Program.kt │ ├── Rectangular.kt │ └── Shape.kt ├── Chapter04 └── src │ └── main │ ├── java │ ├── KotlinFromJava.java │ └── com │ │ └── packt │ │ └── chapter4 │ │ ├── OverloadsForDefaults.java │ │ └── ThrowsFromJava.java │ └── kotlin │ └── com │ └── packt │ ├── chapter2 │ ├── JavaCast.java │ ├── JavaIf.java │ ├── array.kt │ ├── basic_syntax.kt │ ├── bitwise.kt │ ├── boolean.kt │ ├── char.kt │ ├── col1.kt │ ├── comments.kt │ ├── controlflowasexpression.kt │ ├── equals.kt │ ├── exceptions.kt │ ├── explicitWidening.kt │ ├── forloop.kt │ ├── literals.kt │ ├── new.kt │ ├── null.kt │ ├── package.kt │ ├── private.kt │ ├── range1.kt │ ├── return.kt │ ├── smartcasts.kt │ ├── string.kt │ ├── stringconcat.kt │ ├── stringtemplate.kt │ ├── this.kt │ ├── when.kt │ └── while.kt │ ├── chapter4 │ ├── 4.1.kt │ ├── 4.10.kt │ ├── 4.11.operators.kt │ ├── 4.12.kt │ ├── 4.13.kt │ ├── 4.14.vararg.kt │ ├── 4.15.stdlib.kt │ ├── 4.16.genericfuncs.kt │ ├── 4.17.kt │ ├── 4.2.kt │ ├── 4.20.kt │ ├── 4.22.kotlin_from_java.kt │ ├── 4.3.kt │ ├── 4.4.kt │ ├── 4.5.kt │ ├── 4.6.kt │ ├── 4.7.defaults.kt │ ├── 4.8.kt │ ├── 4.9.kt │ ├── Matrix.java │ ├── Named.java │ ├── infix.kt │ ├── matrix.kt │ └── singlexpfun.kt │ ├── chapter5 │ ├── 5.1.HigherOrder.kt │ ├── 5.10.Memoization.kt │ ├── 5.11.Typealias.kt │ ├── 5.12.Either.kt │ ├── 5.13.CustomDsl.kt │ ├── 5.14.ErrorAccumulation.kt │ ├── 5.2.Closures.kt │ ├── 5.3.Anonymous.kt │ ├── 5.4.References.kt │ ├── 5.5.Receivers.kt │ ├── 5.7.Composition.kt │ ├── 5.8.Inline.kt │ └── 5.9.Currying.kt │ ├── myproject │ ├── constants │ │ └── import1.kt │ └── import2.kt │ └── otherproject │ └── Foo.kt ├── Chapter05 └── src │ └── main │ ├── java │ ├── KotlinFromJava.java │ └── com │ │ └── packt │ │ └── chapter4 │ │ ├── OverloadsForDefaults.java │ │ └── ThrowsFromJava.java │ └── kotlin │ └── com │ └── packt │ ├── chapter2 │ ├── JavaCast.java │ ├── JavaIf.java │ ├── array.kt │ ├── basic_syntax.kt │ ├── bitwise.kt │ ├── boolean.kt │ ├── char.kt │ ├── col1.kt │ ├── comments.kt │ ├── controlflowasexpression.kt │ ├── equals.kt │ ├── exceptions.kt │ ├── explicitWidening.kt │ ├── forloop.kt │ ├── literals.kt │ ├── new.kt │ ├── null.kt │ ├── package.kt │ ├── private.kt │ ├── range1.kt │ ├── return.kt │ ├── smartcasts.kt │ ├── string.kt │ ├── stringconcat.kt │ ├── stringtemplate.kt │ ├── this.kt │ ├── when.kt │ └── while.kt │ ├── chapter4 │ ├── 4.1.kt │ ├── 4.10.kt │ ├── 4.11.operators.kt │ ├── 4.12.kt │ ├── 4.13.kt │ ├── 4.14.vararg.kt │ ├── 4.15.stdlib.kt │ ├── 4.16.genericfuncs.kt │ ├── 4.17.kt │ ├── 4.2.kt │ ├── 4.20.kt │ ├── 4.22.kotlin_from_java.kt │ ├── 4.3.kt │ ├── 4.4.kt │ ├── 4.5.kt │ ├── 4.6.kt │ ├── 4.7.defaults.kt │ ├── 4.8.kt │ ├── 4.9.kt │ ├── Matrix.java │ ├── Named.java │ ├── infix.kt │ ├── matrix.kt │ └── singlexpfun.kt │ ├── chapter5 │ ├── 5.1.HigherOrder.kt │ ├── 5.10.Memoization.kt │ ├── 5.11.Typealias.kt │ ├── 5.12.Either.kt │ ├── 5.13.CustomDsl.kt │ ├── 5.14.ErrorAccumulation.kt │ ├── 5.2.Closures.kt │ ├── 5.3.Anonymous.kt │ ├── 5.4.References.kt │ ├── 5.5.Receivers.kt │ ├── 5.7.Composition.kt │ ├── 5.8.Inline.kt │ └── 5.9.Currying.kt │ ├── myproject │ ├── constants │ │ └── import1.kt │ └── import2.kt │ └── otherproject │ └── Foo.kt ├── Chapter06 ├── build.gradle ├── gradle.properties ├── gradlew ├── gradlew.bat ├── settings.gradle └── src │ └── main │ └── kotlin │ └── com │ └── programming │ └── kotlin │ └── chapter06 │ ├── DelayedInit.kt │ ├── Delegate.kt │ ├── LazyProperty.kt │ ├── Lookup.kt │ ├── Measure.kt │ ├── NonNullProp.kt │ ├── Player.kt │ ├── Program.kt │ ├── PropsByMap.kt │ ├── Shape.kt │ ├── Student.kt │ ├── Trivial.kt │ ├── WithInheritance.kt │ ├── WithObservableProp.kt │ └── WithPrivateSetter.kt ├── Chapter07 └── src │ └── main │ ├── java │ ├── KotlinFromJava.java │ └── com │ │ └── packt │ │ ├── chapter4 │ │ ├── OverloadsForDefaults.java │ │ └── ThrowsFromJava.java │ │ └── chapter7 │ │ ├── StaticFuncs.java │ │ └── ThrowsExample.java │ └── kotlin │ └── com │ └── packt │ ├── chapter2 │ ├── JavaCast.java │ ├── JavaIf.java │ ├── array.kt │ ├── basic_syntax.kt │ ├── bitwise.kt │ ├── boolean.kt │ ├── char.kt │ ├── col1.kt │ ├── comments.kt │ ├── controlflowasexpression.kt │ ├── equals.kt │ ├── exceptions.kt │ ├── explicitWidening.kt │ ├── forloop.kt │ ├── literals.kt │ ├── new.kt │ ├── null.kt │ ├── package.kt │ ├── private.kt │ ├── range1.kt │ ├── return.kt │ ├── smartcasts.kt │ ├── string.kt │ ├── stringconcat.kt │ ├── stringtemplate.kt │ ├── this.kt │ ├── when.kt │ └── while.kt │ ├── chapter4 │ ├── 4.1.kt │ ├── 4.10.kt │ ├── 4.11.operators.kt │ ├── 4.12.kt │ ├── 4.13.kt │ ├── 4.14.vararg.kt │ ├── 4.15.stdlib.kt │ ├── 4.16.genericfuncs.kt │ ├── 4.17.kt │ ├── 4.2.kt │ ├── 4.20.kt │ ├── 4.22.kotlin_from_java.kt │ ├── 4.3.kt │ ├── 4.4.kt │ ├── 4.5.kt │ ├── 4.6.kt │ ├── 4.7.defaults.kt │ ├── 4.8.kt │ ├── 4.9.kt │ ├── Matrix.java │ ├── Named.java │ ├── infix.kt │ ├── matrix.kt │ └── singlexpfun.kt │ ├── chapter5 │ ├── 5.1.HigherOrder.kt │ ├── 5.10.Memoization.kt │ ├── 5.11.Typealias.kt │ ├── 5.12.Either.kt │ ├── 5.13.CustomDsl.kt │ ├── 5.14.ErrorAccumulation.kt │ ├── 5.2.Closures.kt │ ├── 5.3.Anonymous.kt │ ├── 5.4.References.kt │ ├── 5.5.Receivers.kt │ ├── 5.7.Composition.kt │ ├── 5.8.Inline.kt │ └── 5.9.Currying.kt │ ├── chapter7 │ ├── 7.10.Instantiation.kt │ ├── 7.11.Constructors.kt │ ├── 7.12.Objects.kt │ ├── 7.13.UsefulKClassProperties.kt │ ├── 7.14.functions.kt │ ├── 7.15.annotations.kt │ ├── 7.16.1.jvmnameannotation.kt │ ├── 7.16.2.JvmStatic.kt │ ├── 7.16.3.Throws.kt │ ├── 7.16.4.JvmOverloads.kt │ ├── 7.4.SafeNullAccess.kt │ ├── 7.5.ElvisOperator.kt │ ├── 7.6.Safecasts.kt │ ├── 7.7.optionals.kt │ └── 7.9.KClass.kt │ ├── myproject │ ├── constants │ │ └── import1.kt │ └── import2.kt │ └── otherproject │ └── Foo.kt ├── Chapter08 └── chapter8 │ └── src │ └── main │ └── kotlin │ └── com │ └── packt │ └── chapter8 │ ├── 8.1.ParameterizedFunctions.kt │ ├── 8.10.AlgebraicDataType.kt │ ├── 8.2.ParameterizedTypes.kt │ ├── 8.3.TypeBounds.kt │ ├── 8.4.Variance.kt │ ├── 8.5.Nothing.kt │ ├── 8.6.TypeProjection.kt │ ├── 8.7.Erasure.kt │ ├── 8.8.Reification.kt │ └── 8.9.fbounded.kt ├── Chapter09 ├── build.gradle ├── gradle.properties ├── settings.gradle └── src │ └── main │ ├── java │ └── com │ │ └── programming │ │ └── kotlin │ │ └── chapter09 │ │ ├── BlogEntryJ.java │ │ ├── Sensor.java │ │ └── SomeProgram.java │ └── kotlin │ └── com │ └── programming │ └── kotlin │ └── chapter09 │ ├── BlogEntry.kt │ ├── Either.kt │ ├── Email.kt │ ├── Program.kt │ ├── SensorExtension.kt │ └── Vector3.kt ├── Chapter10 ├── build.gradle ├── gradle.properties ├── settings.gradle └── src │ └── main │ ├── java │ └── com │ │ └── programming │ │ └── kotlin │ │ └── chapter10 │ │ └── CollectionsJ.java │ ├── kotlin │ └── com │ │ └── programming │ │ └── kotlin │ │ └── chapter10 │ │ ├── ArraysCollection.kt │ │ ├── IndexedAccess.kt │ │ ├── ListsCollection.kt │ │ ├── MapsCollection.kt │ │ ├── Program.kt │ │ ├── ReadOnly.kt │ │ ├── SequencesCollection.kt │ │ └── SetsCollection.kt │ └── resources │ └── afile.txt ├── Chapter11 └── chapter11 │ └── src │ └── main │ └── kotlin │ └── com │ └── packt │ └── chapter11 │ ├── 11.10.Config.kt │ ├── 11.11.Resources.kt │ ├── 11.2.Specs.kt │ ├── 11.3.Matchers.kt │ ├── 11.4.CustomMatchers.kt │ ├── 11.5.Inspectors.kt │ ├── 11.6.Interceptors.kt │ ├── 11.6.ProjectConfig.kt │ ├── 11.7.PropertyTesting.kt │ ├── 11.8.TableDrivenTesting.kt │ └── 11.9.Eventually.kt ├── Chapter12 ├── cassandra-config │ ├── pom.xml │ └── src │ │ ├── assembly │ │ └── conductr-bundle.xml │ │ └── bundle │ │ ├── bundle.conf │ │ ├── cassandra-config │ │ ├── cassandra.yaml │ │ ├── jvm.options │ │ └── logback.xml │ │ └── runtime-config.sh ├── hello-api │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── programming │ │ │ └── kotlin │ │ │ └── chapter12 │ │ │ └── hello │ │ │ └── api │ │ │ ├── GreetingMessage.java │ │ │ └── HelloService.java │ │ └── kotlin │ │ └── com.programming.kotlin.chapter12.hello.api │ │ ├── GreetingMessage.kt │ │ ├── GreetingsMessageSerializer.kt │ │ ├── HelloService.kt │ │ └── Jackson.kt ├── hello-impl │ ├── pom.xml │ └── src │ │ ├── assembly │ │ └── conductr-bundle.xml │ │ ├── bundle │ │ └── bundle.conf │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── programming │ │ │ │ └── kotlin │ │ │ │ └── chapter12 │ │ │ │ └── hello │ │ │ │ └── impl │ │ │ │ ├── HelloCommand.java │ │ │ │ ├── HelloEntity.java │ │ │ │ ├── HelloEvent.java │ │ │ │ ├── HelloModule.java │ │ │ │ ├── HelloServiceImpl.java │ │ │ │ └── HelloState.java │ │ ├── kotlin │ │ │ └── com.programming.kotlin.chapter12.hello.impl │ │ │ │ ├── HelloCommand.kt │ │ │ │ ├── HelloEntity.kt │ │ │ │ ├── HelloEvent.kt │ │ │ │ ├── HelloModule.kt │ │ │ │ ├── HelloServiceImpl.kt │ │ │ │ └── HelloState.kt │ │ └── resources │ │ │ └── application.conf │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── programming │ │ │ └── kotlin │ │ │ └── chapter12 │ │ │ └── hello │ │ │ └── impl │ │ │ ├── HelloEntityTest.java │ │ │ └── HelloServiceTest.java │ │ └── resources │ │ └── logback-test.xml ├── integration-tests │ ├── pom.xml │ └── src │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── programming │ │ │ └── kotlin │ │ │ └── chapter12 │ │ │ └── it │ │ │ └── StreamIT.java │ │ └── resources │ │ ├── application.conf │ │ └── logback-test.xml ├── pom.xml ├── stream-api │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── com │ │ └── programming │ │ └── kotlin │ │ └── chapter12 │ │ └── stream │ │ └── api │ │ └── StreamService.java └── stream-impl │ ├── pom.xml │ └── src │ ├── assembly │ └── conductr-bundle.xml │ ├── bundle │ └── bundle.conf │ └── main │ ├── java │ └── com │ │ └── programming │ │ └── kotlin │ │ └── chapter12 │ │ └── stream │ │ └── impl │ │ ├── StreamModule.java │ │ └── StreamServiceImpl.java │ └── resources │ └── application.conf ├── Chapter13 └── src │ └── main │ └── kotlin │ └── com │ └── packt │ └── chapter13 │ ├── 13.10.CyclicBarrier.kt │ ├── 13.11.Asynchronous.kt │ ├── 13.12.Futures.kt │ ├── 13.2.Thread.kt │ ├── 13.4.Executors.kt │ ├── 13.5.RaceConditions.kt │ ├── 13.6.Semaphore.kt │ ├── 13.7.ConcurrentCollections.kt │ ├── 13.8.Atomics.kt │ └── 13.9.CountdownLatch.kt ├── Chapter14 ├── async.kt ├── cancel_children.kt ├── child_failure.kt ├── concurrent_ecommerce.kt ├── concurrent_ecommerce_async.kt ├── debugging.kt ├── debugging_named.kt ├── dispatcher_default.kt ├── dispatcher_io.kt ├── dispatcher_wrapper.kt ├── exception_handler.kt ├── exception_handler_await.kt ├── first_coroutine.kt ├── intro.kt ├── jobs.kt ├── join.kt ├── lazy.kt ├── nested_coroutines.kt ├── parent_cancellation.kt ├── parent_failure.kt ├── runBlocking.kt ├── second_coroutine.kt ├── sequential.kt ├── sequential_awaits.kt ├── sequential_ecommerce.kt ├── sequential_with_input.kt ├── supervisor_scope.kt ├── will_block_before_exit.kt ├── will_exit.kt └── withContext.kt ├── Chapter15 ├── blocking_calls.kt ├── callbacks.kt ├── channel_capacity.kt ├── channel_conflated.kt ├── channel_iteration.kt ├── channel_producer.kt ├── channel_ticker.kt ├── channels_rendezvous.kt ├── select_channel.kt ├── select_closed.kt └── select_deferred.kt ├── Chapter16 ├── build.gradle ├── gradle.properties ├── settings.gradle └── src │ └── main │ └── kotlin │ ├── Program.kt │ └── resources.kt ├── LICENSE └── README.md /Chapter01/gradle_project/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter01/gradle_project/build.gradle -------------------------------------------------------------------------------- /Chapter01/gradle_project/gradle.properties: -------------------------------------------------------------------------------- 1 | kotlin.incremental=true -------------------------------------------------------------------------------- /Chapter01/gradle_project/gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter01/gradle_project/gradlew -------------------------------------------------------------------------------- /Chapter01/gradle_project/gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter01/gradle_project/gradlew.bat -------------------------------------------------------------------------------- /Chapter01/gradle_project/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'chapter01' 2 | 3 | -------------------------------------------------------------------------------- /Chapter01/gradle_project/src/main/java/com/programming/kotlin/chapter01/CarManufacturer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter01/gradle_project/src/main/java/com/programming/kotlin/chapter01/CarManufacturer.java -------------------------------------------------------------------------------- /Chapter01/gradle_project/src/main/kotlin/com/programming/kotlin/chapter01/Program.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter01/gradle_project/src/main/kotlin/com/programming/kotlin/chapter01/Program.kt -------------------------------------------------------------------------------- /Chapter01/gradle_project/src/main/kotlin/com/programming/kotlin/chapter01/Student.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter01/gradle_project/src/main/kotlin/com/programming/kotlin/chapter01/Student.java -------------------------------------------------------------------------------- /Chapter01/gradle_project/src/main/kotlin/com/programming/kotlin/chapter01/Task.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter01/gradle_project/src/main/kotlin/com/programming/kotlin/chapter01/Task.kt -------------------------------------------------------------------------------- /Chapter01/maven-mix/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter01/maven-mix/pom.xml -------------------------------------------------------------------------------- /Chapter01/maven-mix/src/main/java/com/programming/kotlin/CarManufacturer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter01/maven-mix/src/main/java/com/programming/kotlin/CarManufacturer.java -------------------------------------------------------------------------------- /Chapter01/maven-mix/src/main/kotlin/com/programming/kotlin/Hello.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter01/maven-mix/src/main/kotlin/com/programming/kotlin/Hello.kt -------------------------------------------------------------------------------- /Chapter01/maven-mix/src/main/kotlin/com/programming/kotlin/Student.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter01/maven-mix/src/main/kotlin/com/programming/kotlin/Student.java -------------------------------------------------------------------------------- /Chapter01/maven-mix/src/main/kotlin/com/programming/kotlin/Task.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter01/maven-mix/src/main/kotlin/com/programming/kotlin/Task.kt -------------------------------------------------------------------------------- /Chapter01/maven-mix/src/test/kotlin/com/programming/kotlin/HelloTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter01/maven-mix/src/test/kotlin/com/programming/kotlin/HelloTest.kt -------------------------------------------------------------------------------- /Chapter02/src/main/java/KotlinFromJava.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/java/KotlinFromJava.java -------------------------------------------------------------------------------- /Chapter02/src/main/java/com/packt/chapter4/OverloadsForDefaults.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/java/com/packt/chapter4/OverloadsForDefaults.java -------------------------------------------------------------------------------- /Chapter02/src/main/java/com/packt/chapter4/ThrowsFromJava.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/java/com/packt/chapter4/ThrowsFromJava.java -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/JavaCast.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/JavaCast.java -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/JavaIf.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/JavaIf.java -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/array.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/array.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/basic_syntax.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/basic_syntax.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/bitwise.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/bitwise.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/boolean.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/boolean.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/char.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/char.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/col1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/col1.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/comments.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/comments.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/controlflowasexpression.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/controlflowasexpression.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/equals.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/equals.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/exceptions.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/exceptions.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/explicitWidening.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/explicitWidening.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/forloop.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/forloop.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/literals.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/literals.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/new.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/new.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/null.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/null.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/package.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/package.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/private.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/private.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/range1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/range1.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/return.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/return.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/smartcasts.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/smartcasts.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/string.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/string.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/stringconcat.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/stringconcat.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/stringtemplate.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/stringtemplate.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/this.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/this.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/when.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/when.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter2/while.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter2/while.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.1.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.10.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.10.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.11.operators.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.11.operators.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.12.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.12.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.13.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.13.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.14.vararg.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.14.vararg.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.15.stdlib.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.15.stdlib.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.16.genericfuncs.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.16.genericfuncs.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.17.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.17.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.2.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.2.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.20.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.20.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.22.kotlin_from_java.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.22.kotlin_from_java.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.3.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.3.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.4.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.4.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.5.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.5.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.6.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.6.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.7.defaults.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.7.defaults.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.8.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.8.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/4.9.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/4.9.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/Matrix.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/Matrix.java -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/Named.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/Named.java -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/infix.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/infix.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/matrix.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter4/matrix.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter4/singlexpfun.kt: -------------------------------------------------------------------------------- 1 | package com.packt.chapter4 2 | 3 | fun square(k: Int) = k * k 4 | -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter5/5.1.HigherOrder.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter5/5.1.HigherOrder.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter5/5.10.Memoization.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter5/5.10.Memoization.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter5/5.11.Typealias.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter5/5.11.Typealias.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter5/5.12.Either.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter5/5.12.Either.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter5/5.13.CustomDsl.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter5/5.13.CustomDsl.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter5/5.14.ErrorAccumulation.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter5/5.14.ErrorAccumulation.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter5/5.2.Closures.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter5/5.2.Closures.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter5/5.3.Anonymous.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter5/5.3.Anonymous.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter5/5.4.References.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter5/5.4.References.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter5/5.5.Receivers.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter5/5.5.Receivers.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter5/5.7.Composition.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter5/5.7.Composition.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter5/5.8.Inline.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter5/5.8.Inline.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/chapter5/5.9.Currying.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/chapter5/5.9.Currying.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/myproject/constants/import1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/myproject/constants/import1.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/myproject/import2.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter02/src/main/kotlin/com/packt/myproject/import2.kt -------------------------------------------------------------------------------- /Chapter02/src/main/kotlin/com/packt/otherproject/Foo.kt: -------------------------------------------------------------------------------- 1 | package com.packt.otherproject 2 | 3 | class Foo -------------------------------------------------------------------------------- /Chapter03/inheritance/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/build.gradle -------------------------------------------------------------------------------- /Chapter03/inheritance/gradle.properties: -------------------------------------------------------------------------------- 1 | kotlin.incremental=true -------------------------------------------------------------------------------- /Chapter03/inheritance/gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/gradlew -------------------------------------------------------------------------------- /Chapter03/inheritance/gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/gradlew.bat -------------------------------------------------------------------------------- /Chapter03/inheritance/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'inheritance' 2 | 3 | -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/A.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/A.kt -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Abstract.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Abstract.kt -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Airplane.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Airplane.kt -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/AmphibiousCar.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/AmphibiousCar.kt -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Base.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Base.kt -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/CardPayment.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/CardPayment.kt -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/CardType.kt: -------------------------------------------------------------------------------- 1 | package com.programming.kotlin.chapter03 2 | 3 | 4 | enum class CardType { 5 | VISA, MASTERCARD, AMEX 6 | } -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/ChequePayment.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/ChequePayment.kt -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Container.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Container.kt -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Document.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Document.kt -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Image.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Image.kt -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/IntBinaryTreee.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/IntBinaryTreee.kt -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Payment.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Payment.kt -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Program.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Program.kt -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Singleton.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Singleton.kt -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Static.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Static.kt -------------------------------------------------------------------------------- /Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Student.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/inheritance/src/main/kotlin/com/programming/kotlin/chapter03/Student.kt -------------------------------------------------------------------------------- /Chapter03/polymorphism/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/polymorphism/build.gradle -------------------------------------------------------------------------------- /Chapter03/polymorphism/gradle.properties: -------------------------------------------------------------------------------- 1 | kotlin.incremental=true -------------------------------------------------------------------------------- /Chapter03/polymorphism/gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/polymorphism/gradlew -------------------------------------------------------------------------------- /Chapter03/polymorphism/gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/polymorphism/gradlew.bat -------------------------------------------------------------------------------- /Chapter03/polymorphism/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'polymorphism' 2 | 3 | -------------------------------------------------------------------------------- /Chapter03/polymorphism/src/main/kotlin/com/programming/kotlin/chapter03/Ellipsis.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/polymorphism/src/main/kotlin/com/programming/kotlin/chapter03/Ellipsis.kt -------------------------------------------------------------------------------- /Chapter03/polymorphism/src/main/kotlin/com/programming/kotlin/chapter03/Program.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/polymorphism/src/main/kotlin/com/programming/kotlin/chapter03/Program.kt -------------------------------------------------------------------------------- /Chapter03/polymorphism/src/main/kotlin/com/programming/kotlin/chapter03/Rectangular.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/polymorphism/src/main/kotlin/com/programming/kotlin/chapter03/Rectangular.kt -------------------------------------------------------------------------------- /Chapter03/polymorphism/src/main/kotlin/com/programming/kotlin/chapter03/Shape.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter03/polymorphism/src/main/kotlin/com/programming/kotlin/chapter03/Shape.kt -------------------------------------------------------------------------------- /Chapter04/src/main/java/KotlinFromJava.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/java/KotlinFromJava.java -------------------------------------------------------------------------------- /Chapter04/src/main/java/com/packt/chapter4/OverloadsForDefaults.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/java/com/packt/chapter4/OverloadsForDefaults.java -------------------------------------------------------------------------------- /Chapter04/src/main/java/com/packt/chapter4/ThrowsFromJava.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/java/com/packt/chapter4/ThrowsFromJava.java -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/JavaCast.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/JavaCast.java -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/JavaIf.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/JavaIf.java -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/array.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/array.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/basic_syntax.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/basic_syntax.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/bitwise.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/bitwise.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/boolean.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/boolean.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/char.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/char.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/col1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/col1.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/comments.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/comments.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/controlflowasexpression.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/controlflowasexpression.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/equals.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/equals.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/exceptions.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/exceptions.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/explicitWidening.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/explicitWidening.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/forloop.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/forloop.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/literals.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/literals.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/new.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/new.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/null.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/null.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/package.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/package.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/private.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/private.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/range1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/range1.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/return.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/return.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/smartcasts.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/smartcasts.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/string.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/string.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/stringconcat.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/stringconcat.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/stringtemplate.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/stringtemplate.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/this.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/this.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/when.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/when.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter2/while.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter2/while.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.1.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.10.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.10.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.11.operators.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.11.operators.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.12.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.12.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.13.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.13.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.14.vararg.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.14.vararg.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.15.stdlib.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.15.stdlib.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.16.genericfuncs.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.16.genericfuncs.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.17.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.17.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.2.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.2.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.20.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.20.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.22.kotlin_from_java.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.22.kotlin_from_java.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.3.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.3.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.4.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.4.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.5.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.5.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.6.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.6.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.7.defaults.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.7.defaults.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.8.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.8.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/4.9.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/4.9.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/Matrix.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/Matrix.java -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/Named.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/Named.java -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/infix.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/infix.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/matrix.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter4/matrix.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter4/singlexpfun.kt: -------------------------------------------------------------------------------- 1 | package com.packt.chapter4 2 | 3 | fun square(k: Int) = k * k 4 | -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter5/5.1.HigherOrder.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter5/5.1.HigherOrder.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter5/5.10.Memoization.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter5/5.10.Memoization.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter5/5.11.Typealias.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter5/5.11.Typealias.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter5/5.12.Either.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter5/5.12.Either.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter5/5.13.CustomDsl.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter5/5.13.CustomDsl.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter5/5.14.ErrorAccumulation.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter5/5.14.ErrorAccumulation.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter5/5.2.Closures.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter5/5.2.Closures.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter5/5.3.Anonymous.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter5/5.3.Anonymous.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter5/5.4.References.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter5/5.4.References.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter5/5.5.Receivers.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter5/5.5.Receivers.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter5/5.7.Composition.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter5/5.7.Composition.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter5/5.8.Inline.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter5/5.8.Inline.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/chapter5/5.9.Currying.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/chapter5/5.9.Currying.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/myproject/constants/import1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/myproject/constants/import1.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/myproject/import2.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter04/src/main/kotlin/com/packt/myproject/import2.kt -------------------------------------------------------------------------------- /Chapter04/src/main/kotlin/com/packt/otherproject/Foo.kt: -------------------------------------------------------------------------------- 1 | package com.packt.otherproject 2 | 3 | class Foo -------------------------------------------------------------------------------- /Chapter05/src/main/java/KotlinFromJava.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/java/KotlinFromJava.java -------------------------------------------------------------------------------- /Chapter05/src/main/java/com/packt/chapter4/OverloadsForDefaults.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/java/com/packt/chapter4/OverloadsForDefaults.java -------------------------------------------------------------------------------- /Chapter05/src/main/java/com/packt/chapter4/ThrowsFromJava.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/java/com/packt/chapter4/ThrowsFromJava.java -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/JavaCast.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/JavaCast.java -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/JavaIf.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/JavaIf.java -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/array.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/array.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/basic_syntax.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/basic_syntax.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/bitwise.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/bitwise.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/boolean.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/boolean.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/char.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/char.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/col1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/col1.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/comments.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/comments.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/controlflowasexpression.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/controlflowasexpression.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/equals.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/equals.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/exceptions.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/exceptions.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/explicitWidening.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/explicitWidening.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/forloop.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/forloop.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/literals.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/literals.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/new.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/new.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/null.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/null.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/package.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/package.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/private.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/private.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/range1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/range1.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/return.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/return.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/smartcasts.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/smartcasts.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/string.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/string.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/stringconcat.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/stringconcat.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/stringtemplate.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/stringtemplate.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/this.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/this.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/when.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/when.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter2/while.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter2/while.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.1.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.10.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.10.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.11.operators.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.11.operators.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.12.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.12.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.13.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.13.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.14.vararg.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.14.vararg.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.15.stdlib.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.15.stdlib.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.16.genericfuncs.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.16.genericfuncs.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.17.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.17.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.2.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.2.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.20.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.20.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.22.kotlin_from_java.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.22.kotlin_from_java.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.3.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.3.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.4.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.4.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.5.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.5.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.6.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.6.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.7.defaults.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.7.defaults.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.8.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.8.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/4.9.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/4.9.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/Matrix.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/Matrix.java -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/Named.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/Named.java -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/infix.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/infix.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/matrix.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter4/matrix.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter4/singlexpfun.kt: -------------------------------------------------------------------------------- 1 | package com.packt.chapter4 2 | 3 | fun square(k: Int) = k * k 4 | -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter5/5.1.HigherOrder.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter5/5.1.HigherOrder.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter5/5.10.Memoization.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter5/5.10.Memoization.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter5/5.11.Typealias.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter5/5.11.Typealias.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter5/5.12.Either.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter5/5.12.Either.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter5/5.13.CustomDsl.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter5/5.13.CustomDsl.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter5/5.14.ErrorAccumulation.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter5/5.14.ErrorAccumulation.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter5/5.2.Closures.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter5/5.2.Closures.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter5/5.3.Anonymous.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter5/5.3.Anonymous.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter5/5.4.References.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter5/5.4.References.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter5/5.5.Receivers.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter5/5.5.Receivers.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter5/5.7.Composition.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter5/5.7.Composition.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter5/5.8.Inline.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter5/5.8.Inline.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/chapter5/5.9.Currying.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/chapter5/5.9.Currying.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/myproject/constants/import1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/myproject/constants/import1.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/myproject/import2.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter05/src/main/kotlin/com/packt/myproject/import2.kt -------------------------------------------------------------------------------- /Chapter05/src/main/kotlin/com/packt/otherproject/Foo.kt: -------------------------------------------------------------------------------- 1 | package com.packt.otherproject 2 | 3 | class Foo -------------------------------------------------------------------------------- /Chapter06/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/build.gradle -------------------------------------------------------------------------------- /Chapter06/gradle.properties: -------------------------------------------------------------------------------- 1 | kotlin.incremental=true -------------------------------------------------------------------------------- /Chapter06/gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/gradlew -------------------------------------------------------------------------------- /Chapter06/gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/gradlew.bat -------------------------------------------------------------------------------- /Chapter06/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'properties' 2 | 3 | -------------------------------------------------------------------------------- /Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/DelayedInit.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/DelayedInit.kt -------------------------------------------------------------------------------- /Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/Delegate.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/Delegate.kt -------------------------------------------------------------------------------- /Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/LazyProperty.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/LazyProperty.kt -------------------------------------------------------------------------------- /Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/Lookup.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/Lookup.kt -------------------------------------------------------------------------------- /Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/Measure.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/Measure.kt -------------------------------------------------------------------------------- /Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/NonNullProp.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/NonNullProp.kt -------------------------------------------------------------------------------- /Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/Player.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/Player.kt -------------------------------------------------------------------------------- /Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/Program.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/Program.kt -------------------------------------------------------------------------------- /Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/PropsByMap.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/PropsByMap.kt -------------------------------------------------------------------------------- /Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/Shape.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/Shape.kt -------------------------------------------------------------------------------- /Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/Student.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/Student.kt -------------------------------------------------------------------------------- /Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/Trivial.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/Trivial.kt -------------------------------------------------------------------------------- /Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/WithInheritance.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/WithInheritance.kt -------------------------------------------------------------------------------- /Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/WithObservableProp.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/WithObservableProp.kt -------------------------------------------------------------------------------- /Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/WithPrivateSetter.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter06/src/main/kotlin/com/programming/kotlin/chapter06/WithPrivateSetter.kt -------------------------------------------------------------------------------- /Chapter07/src/main/java/KotlinFromJava.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/java/KotlinFromJava.java -------------------------------------------------------------------------------- /Chapter07/src/main/java/com/packt/chapter4/OverloadsForDefaults.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/java/com/packt/chapter4/OverloadsForDefaults.java -------------------------------------------------------------------------------- /Chapter07/src/main/java/com/packt/chapter4/ThrowsFromJava.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/java/com/packt/chapter4/ThrowsFromJava.java -------------------------------------------------------------------------------- /Chapter07/src/main/java/com/packt/chapter7/StaticFuncs.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/java/com/packt/chapter7/StaticFuncs.java -------------------------------------------------------------------------------- /Chapter07/src/main/java/com/packt/chapter7/ThrowsExample.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/java/com/packt/chapter7/ThrowsExample.java -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/JavaCast.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/JavaCast.java -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/JavaIf.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/JavaIf.java -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/array.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/array.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/basic_syntax.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/basic_syntax.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/bitwise.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/bitwise.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/boolean.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/boolean.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/char.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/char.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/col1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/col1.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/comments.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/comments.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/controlflowasexpression.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/controlflowasexpression.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/equals.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/equals.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/exceptions.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/exceptions.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/explicitWidening.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/explicitWidening.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/forloop.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/forloop.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/literals.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/literals.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/new.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/new.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/null.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/null.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/package.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/package.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/private.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/private.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/range1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/range1.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/return.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/return.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/smartcasts.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/smartcasts.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/string.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/string.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/stringconcat.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/stringconcat.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/stringtemplate.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/stringtemplate.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/this.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/this.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/when.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/when.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter2/while.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter2/while.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.1.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.10.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.10.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.11.operators.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.11.operators.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.12.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.12.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.13.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.13.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.14.vararg.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.14.vararg.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.15.stdlib.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.15.stdlib.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.16.genericfuncs.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.16.genericfuncs.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.17.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.17.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.2.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.2.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.20.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.20.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.22.kotlin_from_java.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.22.kotlin_from_java.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.3.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.3.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.4.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.4.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.5.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.5.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.6.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.6.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.7.defaults.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.7.defaults.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.8.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.8.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/4.9.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/4.9.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/Matrix.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/Matrix.java -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/Named.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/Named.java -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/infix.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/infix.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/matrix.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter4/matrix.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter4/singlexpfun.kt: -------------------------------------------------------------------------------- 1 | package com.packt.chapter4 2 | 3 | fun square(k: Int) = k * k 4 | -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter5/5.1.HigherOrder.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter5/5.1.HigherOrder.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter5/5.10.Memoization.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter5/5.10.Memoization.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter5/5.11.Typealias.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter5/5.11.Typealias.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter5/5.12.Either.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter5/5.12.Either.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter5/5.13.CustomDsl.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter5/5.13.CustomDsl.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter5/5.14.ErrorAccumulation.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter5/5.14.ErrorAccumulation.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter5/5.2.Closures.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter5/5.2.Closures.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter5/5.3.Anonymous.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter5/5.3.Anonymous.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter5/5.4.References.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter5/5.4.References.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter5/5.5.Receivers.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter5/5.5.Receivers.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter5/5.7.Composition.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter5/5.7.Composition.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter5/5.8.Inline.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter5/5.8.Inline.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter5/5.9.Currying.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter5/5.9.Currying.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter7/7.10.Instantiation.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter7/7.10.Instantiation.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter7/7.11.Constructors.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter7/7.11.Constructors.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter7/7.12.Objects.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter7/7.12.Objects.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter7/7.13.UsefulKClassProperties.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter7/7.13.UsefulKClassProperties.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter7/7.14.functions.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter7/7.14.functions.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter7/7.15.annotations.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter7/7.15.annotations.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter7/7.16.1.jvmnameannotation.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter7/7.16.1.jvmnameannotation.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter7/7.16.2.JvmStatic.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter7/7.16.2.JvmStatic.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter7/7.16.3.Throws.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter7/7.16.3.Throws.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter7/7.16.4.JvmOverloads.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter7/7.16.4.JvmOverloads.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter7/7.4.SafeNullAccess.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter7/7.4.SafeNullAccess.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter7/7.5.ElvisOperator.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter7/7.5.ElvisOperator.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter7/7.6.Safecasts.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter7/7.6.Safecasts.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter7/7.7.optionals.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter7/7.7.optionals.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/chapter7/7.9.KClass.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/chapter7/7.9.KClass.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/myproject/constants/import1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/myproject/constants/import1.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/myproject/import2.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter07/src/main/kotlin/com/packt/myproject/import2.kt -------------------------------------------------------------------------------- /Chapter07/src/main/kotlin/com/packt/otherproject/Foo.kt: -------------------------------------------------------------------------------- 1 | package com.packt.otherproject 2 | 3 | class Foo -------------------------------------------------------------------------------- /Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.1.ParameterizedFunctions.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.1.ParameterizedFunctions.kt -------------------------------------------------------------------------------- /Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.10.AlgebraicDataType.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.10.AlgebraicDataType.kt -------------------------------------------------------------------------------- /Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.2.ParameterizedTypes.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.2.ParameterizedTypes.kt -------------------------------------------------------------------------------- /Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.3.TypeBounds.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.3.TypeBounds.kt -------------------------------------------------------------------------------- /Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.4.Variance.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.4.Variance.kt -------------------------------------------------------------------------------- /Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.5.Nothing.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.5.Nothing.kt -------------------------------------------------------------------------------- /Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.6.TypeProjection.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.6.TypeProjection.kt -------------------------------------------------------------------------------- /Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.7.Erasure.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.7.Erasure.kt -------------------------------------------------------------------------------- /Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.8.Reification.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.8.Reification.kt -------------------------------------------------------------------------------- /Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.9.fbounded.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter08/chapter8/src/main/kotlin/com/packt/chapter8/8.9.fbounded.kt -------------------------------------------------------------------------------- /Chapter09/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter09/build.gradle -------------------------------------------------------------------------------- /Chapter09/gradle.properties: -------------------------------------------------------------------------------- 1 | kotlin.incremental=true -------------------------------------------------------------------------------- /Chapter09/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'properties' 2 | 3 | -------------------------------------------------------------------------------- /Chapter09/src/main/java/com/programming/kotlin/chapter09/BlogEntryJ.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter09/src/main/java/com/programming/kotlin/chapter09/BlogEntryJ.java -------------------------------------------------------------------------------- /Chapter09/src/main/java/com/programming/kotlin/chapter09/Sensor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter09/src/main/java/com/programming/kotlin/chapter09/Sensor.java -------------------------------------------------------------------------------- /Chapter09/src/main/java/com/programming/kotlin/chapter09/SomeProgram.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter09/src/main/java/com/programming/kotlin/chapter09/SomeProgram.java -------------------------------------------------------------------------------- /Chapter09/src/main/kotlin/com/programming/kotlin/chapter09/BlogEntry.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter09/src/main/kotlin/com/programming/kotlin/chapter09/BlogEntry.kt -------------------------------------------------------------------------------- /Chapter09/src/main/kotlin/com/programming/kotlin/chapter09/Either.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter09/src/main/kotlin/com/programming/kotlin/chapter09/Either.kt -------------------------------------------------------------------------------- /Chapter09/src/main/kotlin/com/programming/kotlin/chapter09/Email.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter09/src/main/kotlin/com/programming/kotlin/chapter09/Email.kt -------------------------------------------------------------------------------- /Chapter09/src/main/kotlin/com/programming/kotlin/chapter09/Program.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter09/src/main/kotlin/com/programming/kotlin/chapter09/Program.kt -------------------------------------------------------------------------------- /Chapter09/src/main/kotlin/com/programming/kotlin/chapter09/SensorExtension.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter09/src/main/kotlin/com/programming/kotlin/chapter09/SensorExtension.kt -------------------------------------------------------------------------------- /Chapter09/src/main/kotlin/com/programming/kotlin/chapter09/Vector3.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter09/src/main/kotlin/com/programming/kotlin/chapter09/Vector3.kt -------------------------------------------------------------------------------- /Chapter10/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter10/build.gradle -------------------------------------------------------------------------------- /Chapter10/gradle.properties: -------------------------------------------------------------------------------- 1 | kotlin.incremental=true -------------------------------------------------------------------------------- /Chapter10/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'chapter10' 2 | 3 | -------------------------------------------------------------------------------- /Chapter10/src/main/java/com/programming/kotlin/chapter10/CollectionsJ.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter10/src/main/java/com/programming/kotlin/chapter10/CollectionsJ.java -------------------------------------------------------------------------------- /Chapter10/src/main/kotlin/com/programming/kotlin/chapter10/ArraysCollection.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter10/src/main/kotlin/com/programming/kotlin/chapter10/ArraysCollection.kt -------------------------------------------------------------------------------- /Chapter10/src/main/kotlin/com/programming/kotlin/chapter10/IndexedAccess.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter10/src/main/kotlin/com/programming/kotlin/chapter10/IndexedAccess.kt -------------------------------------------------------------------------------- /Chapter10/src/main/kotlin/com/programming/kotlin/chapter10/ListsCollection.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter10/src/main/kotlin/com/programming/kotlin/chapter10/ListsCollection.kt -------------------------------------------------------------------------------- /Chapter10/src/main/kotlin/com/programming/kotlin/chapter10/MapsCollection.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter10/src/main/kotlin/com/programming/kotlin/chapter10/MapsCollection.kt -------------------------------------------------------------------------------- /Chapter10/src/main/kotlin/com/programming/kotlin/chapter10/Program.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter10/src/main/kotlin/com/programming/kotlin/chapter10/Program.kt -------------------------------------------------------------------------------- /Chapter10/src/main/kotlin/com/programming/kotlin/chapter10/ReadOnly.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter10/src/main/kotlin/com/programming/kotlin/chapter10/ReadOnly.kt -------------------------------------------------------------------------------- /Chapter10/src/main/kotlin/com/programming/kotlin/chapter10/SequencesCollection.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter10/src/main/kotlin/com/programming/kotlin/chapter10/SequencesCollection.kt -------------------------------------------------------------------------------- /Chapter10/src/main/kotlin/com/programming/kotlin/chapter10/SetsCollection.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter10/src/main/kotlin/com/programming/kotlin/chapter10/SetsCollection.kt -------------------------------------------------------------------------------- /Chapter10/src/main/resources/afile.txt: -------------------------------------------------------------------------------- 1 | Kotlin 2 | is 3 | awesome! -------------------------------------------------------------------------------- /Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.10.Config.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.10.Config.kt -------------------------------------------------------------------------------- /Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.11.Resources.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.11.Resources.kt -------------------------------------------------------------------------------- /Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.2.Specs.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.2.Specs.kt -------------------------------------------------------------------------------- /Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.3.Matchers.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.3.Matchers.kt -------------------------------------------------------------------------------- /Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.4.CustomMatchers.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.4.CustomMatchers.kt -------------------------------------------------------------------------------- /Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.5.Inspectors.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.5.Inspectors.kt -------------------------------------------------------------------------------- /Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.6.Interceptors.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.6.Interceptors.kt -------------------------------------------------------------------------------- /Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.6.ProjectConfig.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.6.ProjectConfig.kt -------------------------------------------------------------------------------- /Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.7.PropertyTesting.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.7.PropertyTesting.kt -------------------------------------------------------------------------------- /Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.8.TableDrivenTesting.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.8.TableDrivenTesting.kt -------------------------------------------------------------------------------- /Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.9.Eventually.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter11/chapter11/src/main/kotlin/com/packt/chapter11/11.9.Eventually.kt -------------------------------------------------------------------------------- /Chapter12/cassandra-config/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/cassandra-config/pom.xml -------------------------------------------------------------------------------- /Chapter12/cassandra-config/src/assembly/conductr-bundle.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/cassandra-config/src/assembly/conductr-bundle.xml -------------------------------------------------------------------------------- /Chapter12/cassandra-config/src/bundle/bundle.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/cassandra-config/src/bundle/bundle.conf -------------------------------------------------------------------------------- /Chapter12/cassandra-config/src/bundle/cassandra-config/cassandra.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/cassandra-config/src/bundle/cassandra-config/cassandra.yaml -------------------------------------------------------------------------------- /Chapter12/cassandra-config/src/bundle/cassandra-config/jvm.options: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/cassandra-config/src/bundle/cassandra-config/jvm.options -------------------------------------------------------------------------------- /Chapter12/cassandra-config/src/bundle/cassandra-config/logback.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/cassandra-config/src/bundle/cassandra-config/logback.xml -------------------------------------------------------------------------------- /Chapter12/cassandra-config/src/bundle/runtime-config.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/cassandra-config/src/bundle/runtime-config.sh -------------------------------------------------------------------------------- /Chapter12/hello-api/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-api/pom.xml -------------------------------------------------------------------------------- /Chapter12/hello-api/src/main/java/com/programming/kotlin/chapter12/hello/api/GreetingMessage.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-api/src/main/java/com/programming/kotlin/chapter12/hello/api/GreetingMessage.java -------------------------------------------------------------------------------- /Chapter12/hello-api/src/main/java/com/programming/kotlin/chapter12/hello/api/HelloService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-api/src/main/java/com/programming/kotlin/chapter12/hello/api/HelloService.java -------------------------------------------------------------------------------- /Chapter12/hello-api/src/main/kotlin/com.programming.kotlin.chapter12.hello.api/GreetingMessage.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-api/src/main/kotlin/com.programming.kotlin.chapter12.hello.api/GreetingMessage.kt -------------------------------------------------------------------------------- /Chapter12/hello-api/src/main/kotlin/com.programming.kotlin.chapter12.hello.api/GreetingsMessageSerializer.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-api/src/main/kotlin/com.programming.kotlin.chapter12.hello.api/GreetingsMessageSerializer.kt -------------------------------------------------------------------------------- /Chapter12/hello-api/src/main/kotlin/com.programming.kotlin.chapter12.hello.api/HelloService.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-api/src/main/kotlin/com.programming.kotlin.chapter12.hello.api/HelloService.kt -------------------------------------------------------------------------------- /Chapter12/hello-api/src/main/kotlin/com.programming.kotlin.chapter12.hello.api/Jackson.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-api/src/main/kotlin/com.programming.kotlin.chapter12.hello.api/Jackson.kt -------------------------------------------------------------------------------- /Chapter12/hello-impl/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/pom.xml -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/assembly/conductr-bundle.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/assembly/conductr-bundle.xml -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/bundle/bundle.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/bundle/bundle.conf -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/main/java/com/programming/kotlin/chapter12/hello/impl/HelloCommand.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/main/java/com/programming/kotlin/chapter12/hello/impl/HelloCommand.java -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/main/java/com/programming/kotlin/chapter12/hello/impl/HelloEntity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/main/java/com/programming/kotlin/chapter12/hello/impl/HelloEntity.java -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/main/java/com/programming/kotlin/chapter12/hello/impl/HelloEvent.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/main/java/com/programming/kotlin/chapter12/hello/impl/HelloEvent.java -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/main/java/com/programming/kotlin/chapter12/hello/impl/HelloModule.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/main/java/com/programming/kotlin/chapter12/hello/impl/HelloModule.java -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/main/java/com/programming/kotlin/chapter12/hello/impl/HelloServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/main/java/com/programming/kotlin/chapter12/hello/impl/HelloServiceImpl.java -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/main/java/com/programming/kotlin/chapter12/hello/impl/HelloState.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/main/java/com/programming/kotlin/chapter12/hello/impl/HelloState.java -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/main/kotlin/com.programming.kotlin.chapter12.hello.impl/HelloCommand.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/main/kotlin/com.programming.kotlin.chapter12.hello.impl/HelloCommand.kt -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/main/kotlin/com.programming.kotlin.chapter12.hello.impl/HelloEntity.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/main/kotlin/com.programming.kotlin.chapter12.hello.impl/HelloEntity.kt -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/main/kotlin/com.programming.kotlin.chapter12.hello.impl/HelloEvent.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/main/kotlin/com.programming.kotlin.chapter12.hello.impl/HelloEvent.kt -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/main/kotlin/com.programming.kotlin.chapter12.hello.impl/HelloModule.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/main/kotlin/com.programming.kotlin.chapter12.hello.impl/HelloModule.kt -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/main/kotlin/com.programming.kotlin.chapter12.hello.impl/HelloServiceImpl.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/main/kotlin/com.programming.kotlin.chapter12.hello.impl/HelloServiceImpl.kt -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/main/kotlin/com.programming.kotlin.chapter12.hello.impl/HelloState.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/main/kotlin/com.programming.kotlin.chapter12.hello.impl/HelloState.kt -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/main/resources/application.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/main/resources/application.conf -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/test/java/com/programming/kotlin/chapter12/hello/impl/HelloEntityTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/test/java/com/programming/kotlin/chapter12/hello/impl/HelloEntityTest.java -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/test/java/com/programming/kotlin/chapter12/hello/impl/HelloServiceTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/test/java/com/programming/kotlin/chapter12/hello/impl/HelloServiceTest.java -------------------------------------------------------------------------------- /Chapter12/hello-impl/src/test/resources/logback-test.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/hello-impl/src/test/resources/logback-test.xml -------------------------------------------------------------------------------- /Chapter12/integration-tests/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/integration-tests/pom.xml -------------------------------------------------------------------------------- /Chapter12/integration-tests/src/test/java/com/programming/kotlin/chapter12/it/StreamIT.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/integration-tests/src/test/java/com/programming/kotlin/chapter12/it/StreamIT.java -------------------------------------------------------------------------------- /Chapter12/integration-tests/src/test/resources/application.conf: -------------------------------------------------------------------------------- 1 | # Because the client factory needs it 2 | -------------------------------------------------------------------------------- /Chapter12/integration-tests/src/test/resources/logback-test.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/integration-tests/src/test/resources/logback-test.xml -------------------------------------------------------------------------------- /Chapter12/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/pom.xml -------------------------------------------------------------------------------- /Chapter12/stream-api/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/stream-api/pom.xml -------------------------------------------------------------------------------- /Chapter12/stream-api/src/main/java/com/programming/kotlin/chapter12/stream/api/StreamService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/stream-api/src/main/java/com/programming/kotlin/chapter12/stream/api/StreamService.java -------------------------------------------------------------------------------- /Chapter12/stream-impl/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/stream-impl/pom.xml -------------------------------------------------------------------------------- /Chapter12/stream-impl/src/assembly/conductr-bundle.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/stream-impl/src/assembly/conductr-bundle.xml -------------------------------------------------------------------------------- /Chapter12/stream-impl/src/bundle/bundle.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/stream-impl/src/bundle/bundle.conf -------------------------------------------------------------------------------- /Chapter12/stream-impl/src/main/java/com/programming/kotlin/chapter12/stream/impl/StreamModule.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/stream-impl/src/main/java/com/programming/kotlin/chapter12/stream/impl/StreamModule.java -------------------------------------------------------------------------------- /Chapter12/stream-impl/src/main/java/com/programming/kotlin/chapter12/stream/impl/StreamServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/stream-impl/src/main/java/com/programming/kotlin/chapter12/stream/impl/StreamServiceImpl.java -------------------------------------------------------------------------------- /Chapter12/stream-impl/src/main/resources/application.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter12/stream-impl/src/main/resources/application.conf -------------------------------------------------------------------------------- /Chapter13/src/main/kotlin/com/packt/chapter13/13.10.CyclicBarrier.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter13/src/main/kotlin/com/packt/chapter13/13.10.CyclicBarrier.kt -------------------------------------------------------------------------------- /Chapter13/src/main/kotlin/com/packt/chapter13/13.11.Asynchronous.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter13/src/main/kotlin/com/packt/chapter13/13.11.Asynchronous.kt -------------------------------------------------------------------------------- /Chapter13/src/main/kotlin/com/packt/chapter13/13.12.Futures.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter13/src/main/kotlin/com/packt/chapter13/13.12.Futures.kt -------------------------------------------------------------------------------- /Chapter13/src/main/kotlin/com/packt/chapter13/13.2.Thread.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter13/src/main/kotlin/com/packt/chapter13/13.2.Thread.kt -------------------------------------------------------------------------------- /Chapter13/src/main/kotlin/com/packt/chapter13/13.4.Executors.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter13/src/main/kotlin/com/packt/chapter13/13.4.Executors.kt -------------------------------------------------------------------------------- /Chapter13/src/main/kotlin/com/packt/chapter13/13.5.RaceConditions.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter13/src/main/kotlin/com/packt/chapter13/13.5.RaceConditions.kt -------------------------------------------------------------------------------- /Chapter13/src/main/kotlin/com/packt/chapter13/13.6.Semaphore.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter13/src/main/kotlin/com/packt/chapter13/13.6.Semaphore.kt -------------------------------------------------------------------------------- /Chapter13/src/main/kotlin/com/packt/chapter13/13.7.ConcurrentCollections.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter13/src/main/kotlin/com/packt/chapter13/13.7.ConcurrentCollections.kt -------------------------------------------------------------------------------- /Chapter13/src/main/kotlin/com/packt/chapter13/13.8.Atomics.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter13/src/main/kotlin/com/packt/chapter13/13.8.Atomics.kt -------------------------------------------------------------------------------- /Chapter13/src/main/kotlin/com/packt/chapter13/13.9.CountdownLatch.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter13/src/main/kotlin/com/packt/chapter13/13.9.CountdownLatch.kt -------------------------------------------------------------------------------- /Chapter14/async.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/async.kt -------------------------------------------------------------------------------- /Chapter14/cancel_children.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/cancel_children.kt -------------------------------------------------------------------------------- /Chapter14/child_failure.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/child_failure.kt -------------------------------------------------------------------------------- /Chapter14/concurrent_ecommerce.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/concurrent_ecommerce.kt -------------------------------------------------------------------------------- /Chapter14/concurrent_ecommerce_async.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/concurrent_ecommerce_async.kt -------------------------------------------------------------------------------- /Chapter14/debugging.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/debugging.kt -------------------------------------------------------------------------------- /Chapter14/debugging_named.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/debugging_named.kt -------------------------------------------------------------------------------- /Chapter14/dispatcher_default.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/dispatcher_default.kt -------------------------------------------------------------------------------- /Chapter14/dispatcher_io.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/dispatcher_io.kt -------------------------------------------------------------------------------- /Chapter14/dispatcher_wrapper.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/dispatcher_wrapper.kt -------------------------------------------------------------------------------- /Chapter14/exception_handler.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/exception_handler.kt -------------------------------------------------------------------------------- /Chapter14/exception_handler_await.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/exception_handler_await.kt -------------------------------------------------------------------------------- /Chapter14/first_coroutine.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/first_coroutine.kt -------------------------------------------------------------------------------- /Chapter14/intro.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/intro.kt -------------------------------------------------------------------------------- /Chapter14/jobs.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/jobs.kt -------------------------------------------------------------------------------- /Chapter14/join.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/join.kt -------------------------------------------------------------------------------- /Chapter14/lazy.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/lazy.kt -------------------------------------------------------------------------------- /Chapter14/nested_coroutines.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/nested_coroutines.kt -------------------------------------------------------------------------------- /Chapter14/parent_cancellation.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/parent_cancellation.kt -------------------------------------------------------------------------------- /Chapter14/parent_failure.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/parent_failure.kt -------------------------------------------------------------------------------- /Chapter14/runBlocking.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/runBlocking.kt -------------------------------------------------------------------------------- /Chapter14/second_coroutine.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/second_coroutine.kt -------------------------------------------------------------------------------- /Chapter14/sequential.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/sequential.kt -------------------------------------------------------------------------------- /Chapter14/sequential_awaits.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/sequential_awaits.kt -------------------------------------------------------------------------------- /Chapter14/sequential_ecommerce.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/sequential_ecommerce.kt -------------------------------------------------------------------------------- /Chapter14/sequential_with_input.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/sequential_with_input.kt -------------------------------------------------------------------------------- /Chapter14/supervisor_scope.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/supervisor_scope.kt -------------------------------------------------------------------------------- /Chapter14/will_block_before_exit.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/will_block_before_exit.kt -------------------------------------------------------------------------------- /Chapter14/will_exit.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/will_exit.kt -------------------------------------------------------------------------------- /Chapter14/withContext.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter14/withContext.kt -------------------------------------------------------------------------------- /Chapter15/blocking_calls.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter15/blocking_calls.kt -------------------------------------------------------------------------------- /Chapter15/callbacks.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter15/callbacks.kt -------------------------------------------------------------------------------- /Chapter15/channel_capacity.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter15/channel_capacity.kt -------------------------------------------------------------------------------- /Chapter15/channel_conflated.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter15/channel_conflated.kt -------------------------------------------------------------------------------- /Chapter15/channel_iteration.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter15/channel_iteration.kt -------------------------------------------------------------------------------- /Chapter15/channel_producer.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter15/channel_producer.kt -------------------------------------------------------------------------------- /Chapter15/channel_ticker.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter15/channel_ticker.kt -------------------------------------------------------------------------------- /Chapter15/channels_rendezvous.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter15/channels_rendezvous.kt -------------------------------------------------------------------------------- /Chapter15/select_channel.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter15/select_channel.kt -------------------------------------------------------------------------------- /Chapter15/select_closed.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter15/select_closed.kt -------------------------------------------------------------------------------- /Chapter15/select_deferred.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter15/select_deferred.kt -------------------------------------------------------------------------------- /Chapter16/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter16/build.gradle -------------------------------------------------------------------------------- /Chapter16/gradle.properties: -------------------------------------------------------------------------------- 1 | kotlin.code.style=official -------------------------------------------------------------------------------- /Chapter16/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'chapter16' 2 | 3 | -------------------------------------------------------------------------------- /Chapter16/src/main/kotlin/Program.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter16/src/main/kotlin/Program.kt -------------------------------------------------------------------------------- /Chapter16/src/main/kotlin/resources.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/Chapter16/src/main/kotlin/resources.kt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-Kotlin-Programming/HEAD/README.md --------------------------------------------------------------------------------