Re:Beating Decades of Optimized C with 80 Lines of Haskell
by pcstl on Wednesday October 16, 2019 @11:46AM
(#21271670)
~ does indeed denote named arguments. To call a function named f which has an argument named arg with arg set to the value x, the syntax is:
[ Parent
| on HN ]
Re:Beating Decades of Optimized C with 80 Lines of Haskell
by gpderetta on Wednesday October 16, 2019 @12:33PM
(#21272285)
But what about ~buf here:
let len = Core.In_channel.input in_ch ~buf ~pos:0 ~len:buf_size