Press CTRL+C or CMD+C to copy the selected text and close this dialog.
Tweet
1 people like it. Like the snippet!
Copy an array into a new one, changing the value at index 42 to 123. Uses "function" and pattern patching.
1: 2: 3: 4:
Array.mapi (function | 42 -> fun _ -> 123 | _ -> id)