3 ms·
F# just added this syntax: let possibleNow = people |> List.distinctBy _.Name |> List.groupBy _.Age |> List.map snd |> List.m
by williamcotton 2y ago
F# just added this syntax:
let possibleNow =
people
|> List.distinctBy _.Name
|> List.groupBy _.Age
|> List.map snd
|> List.map _.Head.Name
|> List.sortBy _.ToString()
- chuckadams 2y agoMeanwhile JS is still struggling to define even version 1.0 of a pipe operator, and the proposal has been bikeshedded into shabby oblivion with a syntax that's worse than just pulling out lodash pipe() or similar. TC39 does not fill me with hope.