File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -422,12 +422,11 @@ used (it is `Object` on the Java platform).
422422and ` update ` means element update.
423423
424424Because of the syntactic sugar for ` apply ` and ` update ` operations,
425- we have the following correspondences between Scala and Java/C# code for
425+ we have the following correspondences between Scala and Java code for
426426operations on an array ` xs ` :
427427
428- | | |
428+ | _ Scala _ | _ Java _ |
429429| ------------------| ------------|
430- | _ Scala_ | _ Java/C#_ |
431430| ` xs.length ` | ` xs.length ` |
432431| ` xs(i) ` | ` xs[i] ` |
433432| ` xs(i) = e ` | ` xs[i] = e ` |
@@ -449,7 +448,7 @@ explained in the following.
449448
450449#### Variance
451450
452- Unlike arrays in Java or C# , arrays in Scala are _ not_
451+ Unlike arrays in Java, arrays in Scala are _ not_
453452co-variant; That is, $S <: T$ does not imply
454453` Array[$S$] $<:$ Array[$T$] ` in Scala.
455454However, it is possible to cast an array
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ object-oriented and functional programming. It is a pure
3333object-oriented language in the sense that every value is an
3434object. Types and behavior of objects are described by
3535classes. Classes can be composed using mixin composition. Scala is
36- designed to work seamlessly with two less pure but mainstream
37- object-oriented languages – Java and C# .
36+ designed to work seamlessly with less pure but mainstream
37+ object-oriented languages like Java.
3838
3939Scala is a functional language in the sense that every function is a
4040value. Nesting of function definitions and higher-order functions are
You can’t perform that action at this time.
0 commit comments