Skip to content

Instantly share code, notes, and snippets.

@gmmorris
Last active June 9, 2018 21:48
Show Gist options
  • Save gmmorris/61d06488933fdf6599d7250fa1ec7fbb to your computer and use it in GitHub Desktop.
Save gmmorris/61d06488933fdf6599d7250fa1ec7fbb to your computer and use it in GitHub Desktop.
Reason cheat sheet
let (|>) v f = f v
let (<|) f v = f v
/*
Possible characters:
! $ % & * + - . / : < = > ? @ ^ | ~
But they can't all be used freely.
Read: http://blog.shaynefletcher.org/2016/09/custom-operators-in-ocaml.html
Examples:
|!
|$
|%
|&
|*
|+
|-
|.
|/
|:
|<
|=
|>
|?
|@
|^
||
|~
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment