u20
This commit is contained in:
parent
52677dbb23
commit
3db57eabca
2 changed files with 14 additions and 0 deletions
13
ulohyfs/src/u20.fs
Normal file
13
ulohyfs/src/u20.fs
Normal file
|
@ -0,0 +1,13 @@
|
|||
module UlohyFs.u20
|
||||
|
||||
open System.IO
|
||||
open UlohyFs.Attributes
|
||||
open System
|
||||
|
||||
[<Uloha(20)>]
|
||||
let uloha15() =
|
||||
let hostia = ["Novak"; "Novaková"; "novy"; "mlinar"; "mlinarová"; "kovac"; "kovacová"; "rybar"; "rybarová"; "farmar"; "gazdová"]
|
||||
let hostiaZ = hostia |> List.filter _.EndsWith("ová") |> List.sort
|
||||
let hostiaM = hostia |> List.filter (fun x -> not(x.EndsWith("ová"))) |> List.sort
|
||||
printfn "Zeny: %A" hostiaZ
|
||||
printfn "Muzi: %A" hostiaM
|
|
@ -13,6 +13,7 @@
|
|||
<Compile Include="src\u17.fs" />
|
||||
<Compile Include="src\u18.fs" />
|
||||
<Compile Include="src\u19.fs" />
|
||||
<Compile Include="src\u20.fs" />
|
||||
<Compile Include="src\Program.fs" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue