I have a function that iterate over a list of a record type:
let resAddr (ranges: IpRanges list) =
ranges
|> List.iter (fun e ->
{
let {ipStart=ipStart;ipEnd=ipEnd;subnet=subnet;gateway=gateway} = e
printfn "%O" ipStart
})
The compiler complain with error
Invalid record, sequence or computation expression. Sequence expressions should be of the form 'seq { ... }'
What am I doing wrong?
fun e ->in curly braces - Petr