Quick actions

cmd+k|ctrl+k

Navigation

Languages

Script.fsx

Snippet info

Language

Fsharp

Visibility

public

Author

elivais777

Created

2024-10-09T07:57:30.644004Z

Updated

2024-10-09T08:02:28.377632Z

let getOddSquares xs =
    xs
    |> List.filter (fun x -> x % 2 <> 0)
    |> List.map (fun x -> x * x)

printfn "%A" (getOddSquares [1..10])
INFO