This is a quick guide to Kotlin programming language. The previous part of this guide is here
#Object Oriented
fun main(args : Array<String>) {
class local (val x : Int)
val y = local(10)
println("${y.x}")This is a quick guide to Kotlin programming language. The previous part of this guide is here
#Object Oriented
fun main(args : Array<String>) {
class local (val x : Int)
val y = local(10)
println("${y.x}")| const totalTypes = { | |
| VIEWS: 2, | |
| READS: 3, | |
| FANS: 5 | |
| }; | |
| const getTotal = tableColumn => | |
| [ | |
| ...document.querySelectorAll( | |
| `td:nth-child(${tableColumn}) > span.sortableTable-number` |
| using System.Text.RegularExpressions; | |
| public static class StringExtensions | |
| { | |
| // remove double spaces | |
| public static string RemoveExtraSpaces(this string sender, bool trimEnd = false) | |
| { | |
| const RegexOptions options = RegexOptions.None; | |
| var regex = new Regex("[ ]{2,}", options); | |
| var result = regex.Replace(sender, " "); |