- Функциональное программирование – парадигма, принципы, определение
- Особенности функционального программирования
- Функция в парадигме функционального программирования
- Математическая функция и функциональное программирование
- История и основные вехи функционального программирования
- Свойства и характеристики функционального программирования
- Чистые функции. Примеры.
- Побочные эффекты. Проблемы и особенности.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if __name__ == "__main__": | |
m = int(input()) | |
list = [] | |
for i in range(m): | |
list.append(int(input())) | |
sum = list[0] | |
for i in range(1, m): | |
sum += list[i] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def my_max2(a, b): | |
if a > b: | |
return a | |
else: | |
return b | |
if __name__ == "__main__": | |
m = int(input()) | |
y = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if __name__ == "__main__": | |
a = [] | |
n = int(input()) | |
for i in range(n): | |
element = int(input()) | |
a.append(element) | |
index = 0 | |
maxElement = a[0] | |
for i in range(n): | |
if a[i] > maxElement: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_logger.LogDebug( | |
$"ContentType: {httpContext.Request.ContentType}\n" + | |
$"ContentLength: {httpContext.Request.ContentLength}\n" + | |
$"Query: {string.Join(", ", from q in httpContext.Request.Query select $"{q.Key} = {string.Join(",", q.Value)};")}\n" + | |
$"Cookies: {string.Join(", ", from c in httpContext.Request.Cookies select $"{c.Key} = {c.Value};")}\n" + | |
$"HasFormContentType: {httpContext.Request.HasFormContentType}\n" + | |
$"Headers: {string.Join(", ", from h in httpContext.Request.Headers select $"{h.Key} = {string.Join(",", h.Value)};")}\n" + | |
$"Host: {httpContext.Request.Host.Value}\n" + | |
$"IsHttps: {httpContext.Request.IsHttps}\n" + | |
$"Method: {httpContext.Request.Method}\n" + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Items": [ | |
{ | |
"ItemData": { | |
"Name": "Томат", | |
"Amount": 84, | |
"Cost": 976 | |
}, | |
"UserData": { | |
"Nickname": "Sample", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Test | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Disposable d = new Disposable(); |