Date: Thu, 28 Mar 2024 22:57:18 +0300 (MSK) Message-ID: <124453901.21065.1711655838702@localhost> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_21064_1494057853.1711655838700" ------=_Part_21064_1494057853.1711655838700 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
=D0=9F=D1=80=D0=B5=D0=B7=D0=B5=D0=BD=D1=82=D0=B0=D1=86=D0=B8=D1=8F: = ;CollectionsInScala.pptx
=D0=9F=D1=80=D0=B8=D0=BC=D0=B5=D1=80=D1=8B =D0=B8 =D0=B7=D0=B0=D0=B4=D0= =B0=D0=BD=D0=B8=D0=B5: lession9.zip
=D0=92 =D0=BA=D0=BB=D0=B0=D1=81=D1=81=D0=B0 org.mai.dep110.scala.ir= is.IrisExample =D1=81 =D0=BF=D0=BE=D0=BC=D0=BE=D1=89=D1=8C=D1=8E =D0=BC=D0= =B5=D1=82=D0=BE=D0=B4=D0=BE=D0=B2 scala.collection.immutable.List =D1=80=D0= =B0=D1=81=D1=81=D1=87=D0=B8=D1=82=D0=B0=D1=82=D1=8C
//get a= verage sepal width val avgSetalLength =3D 0.0 println(avgSetalLength) //get average petal square - petal width multiplied on petal length val avgPetalLength =3D 0.0 println(avgPetalLength) //get average petal square for flowers with sepal width > 4 val avgPetalSquare =3D 0.0 println(avgPetalSquare) //get flowers grouped by Petal size (PetalSize.Small, etc.) with function g= etPetalSize val groupsByPetalSize =3D Map() println(groupsByPetalSize) //get max sepal width for flowers grouped by species val maxSepalWidthForGroupsBySpecies =3D Map() println(maxSepalWidthForGroupsBySpecies)
Scala lang: https://docs.= scala-lang.org/overviews/collections/overview.html