Horje
conveyor function in f# Code Example
conveyor function in f#
let square x = x * x

let sumOfSquares n =
    [1..n] // Создадим список с элементами от 1 до n
    |> List.map square // Возведем в квадрат каждый элемент
    |> List.sum // Просуммируем их!

printfn "Сумма квадратов первых 5 натуральных чисел равна %d" (sumOfSquares 5)
Source: habr.com




Csharp

Related
linq from multiple tables Code Example linq from multiple tables Code Example
c# signalr console app client example Code Example c# signalr console app client example Code Example
show a message box in c# Code Example show a message box in c# Code Example
find qual values in a dictionary c# Code Example find qual values in a dictionary c# Code Example
how to add gravity without rb in unity Code Example how to add gravity without rb in unity Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7