diff --git a/lab 5/Dockerfile b/lab 5/Dockerfile deleted file mode 100644 index c04c4ad..0000000 --- a/lab 5/Dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -FROM mcr.microsoft.com/dotnet/sdk:8.0 - -WORKDIR /app - -COPY . . - -RUN dotnet restore -RUN dotnet build -c Release - -CMD ["dotnet", "run", "--no-build", "--configuration", "Release"] \ No newline at end of file diff --git a/lab 5/Makefile b/lab 5/Makefile new file mode 100755 index 0000000..ab3a0b5 --- /dev/null +++ b/lab 5/Makefile @@ -0,0 +1,103 @@ +.PHONY: run build clean quadratic circle numbers recursion factory traverse lambda conditional examples + +# HelloWorld +run: + cd HelloWorld && dotnet run --project HelloWorld.fsproj + +build: + cd HelloWorld && dotnet build + +clean: + cd HelloWorld && dotnet clean + +all: build run + +# QuadraticEquation +quadratic: + cd QuadraticEquation && dotnet run --project QuadraticEquation.fsproj + +build-quadratic: + cd QuadraticEquation && dotnet build + +clean-quadratic: + cd QuadraticEquation && dotnet clean + +# CircleAndCylinder +circle: + cd CircleAndCylinder && dotnet run --project CircleAndCylinder.fsproj + +build-circle: + cd CircleAndCylinder && dotnet build + +clean-circle: + cd CircleAndCylinder && dotnet clean + +# NumberOperations +numbers: + cd NumberOperations && dotnet run --project NumberOperations.fsproj + +build-numbers: + cd NumberOperations && dotnet build + +clean-numbers: + cd NumberOperations && dotnet clean + +# RecursionTypes +recursion: + cd RecursionTypes && dotnet run --project RecursionTypes.fsproj + +build-recursion: + cd RecursionTypes && dotnet build + +clean-recursion: + cd RecursionTypes && dotnet clean + +# FunctionFactory +factory: + cd FunctionFactory && dotnet run --project FunctionFactory.fsproj + +build-factory: + cd FunctionFactory && dotnet build + +clean-factory: + cd FunctionFactory && dotnet clean + +# NumberTraversal +traverse: + cd NumberTraversal && dotnet run --project NumberTraversal.fsproj + +build-traverse: + cd NumberTraversal && dotnet build + +clean-traverse: + cd NumberTraversal && dotnet clean + +# LambdaTraversal +lambda: + cd LambdaTraversal && dotnet run --project LambdaTraversal.fsproj + +build-lambda: + cd LambdaTraversal && dotnet build + +clean-lambda: + cd LambdaTraversal && dotnet clean + +# ConditionalTraversal +conditional: + cd ConditionalTraversal && dotnet run --project ConditionalTraversal.fsproj + +build-conditional: + cd ConditionalTraversal && dotnet build + +clean-conditional: + cd ConditionalTraversal && dotnet clean + +# NumberExamples +examples: + cd NumberExamples && dotnet run --project NumberExamples.fsproj + +build-examples: + cd NumberExamples && dotnet build + +clean-examples: + cd NumberExamples && dotnet clean \ No newline at end of file diff --git a/lab 5/Program.fs b/lab 5/Program.fs deleted file mode 100644 index d6818ab..0000000 --- a/lab 5/Program.fs +++ /dev/null @@ -1,2 +0,0 @@ -// For more information see https://aka.ms/fsharp-console-apps -printfn "Hello from F#" diff --git a/lab 5/README.md b/lab 5/README.md index 8b3412a..11b519d 100644 --- a/lab 5/README.md +++ b/lab 5/README.md @@ -46,11 +46,3 @@ make lab5-docker-run - .NET 8.0 SDK или выше - Docker (опционально) -## Задачи лабораторной работы - -- Изучение основ функционального программирования на F# -- Применение рекурсии и хвостовой рекурсии -- Работа с функциями высшего порядка -- Использование лямбда-выражений -- Понимание каррирования и частичного применения функций -- Применение сопоставления с образцом (pattern matching) diff --git a/lab 5/lab 5.fsproj b/lab 5/lab 5.fsproj deleted file mode 100644 index 07dd8bb..0000000 --- a/lab 5/lab 5.fsproj +++ /dev/null @@ -1,13 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk"> - - <PropertyGroup> - <OutputType>Exe</OutputType> - <TargetFramework>net7.0</TargetFramework> - <RootNamespace>lab_5</RootNamespace> - </PropertyGroup> - - <ItemGroup> - <Compile Include="Program.fs" /> - </ItemGroup> - -</Project>