mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-17 21:49:22 +01:00
commit
ec52390c60
@ -481,7 +481,7 @@ extension Int {
|
||||
}
|
||||
|
||||
println(7.customProperty) // "This is 7"
|
||||
println(14.multiplyBy(2)) // 42
|
||||
println(14.multiplyBy(3)) // 42
|
||||
|
||||
// Generics: Similar to Java and C#. Use the `where` keyword to specify the
|
||||
// requirements of the generics.
|
||||
|
Loading…
x
Reference in New Issue
Block a user