Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

homework_1 - Матафонов Денис #161

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions homeworks/homework_1/task_1/console-output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
denis ~/ amm
Loading...
Welcome to the Ammonite Repl 2.2.0 (Scala 2.13.3 Java 14.0.1)
@ val name = "Denis Matafonov"
name: String = "Denis Matafonov"

@ val hello = (name: String) => "Hello Scala! This is " + name
hello: String => String = ammonite.$sess.cmd7$$$Lambda$1379/0x00000008012be840@2abe9173

@ val hello_denis = hello(name)
hello_denis: String = "Hello Scala! This is Denis Matafonov"

@ print(hello_denis)
Hello Scala! This is Denis Matafonov

@ val helloReplacer = (oldPattern: String, newPattern: String, hello: String) => hello.replaceAll(oldPattern, newPattern)
helloReplacer: (String, String, String) => String = ammonite.$sess.cmd10$$$Lambda$1640/0x0000000801304440@787e4357

@ print("Esp: " + helloReplacer("Hello", "Hola", hello_denis))
Esp: Hola Scala! This is Denis Matafonov

@ print("Ger: " + helloReplacer("Hello", "Guten tag", hello_denis))
Ger: Guten tag Scala! This is Denis Matafonov

@ print("Reversed: " + helloReplacer(name, name.reverse, hello_denis))
Reversed: Hello Scala! This is vonofataM sineD

@


1 change: 1 addition & 0 deletions homeworks/homework_1/task_2/scastie-url.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://scastie.scala-lang.org/HpgvVy8eRr2X35YIA0gZpA
8 changes: 8 additions & 0 deletions homeworks/homework_1/task_3/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions homeworks/homework_1/task_3/.idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions homeworks/homework_1/task_3/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions homeworks/homework_1/task_3/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

114 changes: 114 additions & 0 deletions homeworks/homework_1/task_3/.idea/modules/task_3-build.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions homeworks/homework_1/task_3/.idea/modules/task_3.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions homeworks/homework_1/task_3/.idea/sbt.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions homeworks/homework_1/task_3/.idea/scala_compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions homeworks/homework_1/task_3/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions homeworks/homework_1/task_3/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name := "task_3"

version := "0.1"

scalaVersion := "2.13.3"
1 change: 1 addition & 0 deletions homeworks/homework_1/task_3/project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version = 1.3.13
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.internal.DslEntry
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.internal.DslEntry
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.internal.DslEntry
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.internal.DslEntry
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.internal.DslEntry
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-1907435987

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-1413115869
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"{\"organization\":\"org.scala-lang\",\"name\":\"scala-library\",\"revision\":\"2.12.10\",\"configurations\":\"provided\",\"isChanging\":false,\"isTransitive\":true,\"isForce\":false,\"explicitArtifacts\":[],\"inclusions\":[],\"exclusions\":[],\"extraAttributes\":{},\"crossVersion\":{\"type\":\"Disabled\"}}":{"value":{"$fields":["path","startLine"],"path":"(sbt.Classpaths.jvmBaseSettings) Defaults.scala","startLine":2531},"type":"LinePosition"}}
Loading