Skip to content

Instantly share code, notes, and snippets.

View musha68k's full-sized avatar

Oskar Maria Grande musha68k

View GitHub Profile
@musha68k
musha68k / list_ops.ml
Last active April 2, 2017 20:33
List operations
let rec fold ~init ~f = function
[] -> init
| x :: xs -> fold ~init:(f init x) ~f xs
let length xs =
xs
|> fold ~init:0 ~f:(fun acc _ -> acc + 1)
let reverse xs =
xs
@musha68k
musha68k / apply_google_bigquery_data_transfer_config.log.pgp
Last active December 12, 2022 15:48
terraform-provider-google-bigquery-data-transfer-config-issue