Skip to content

Instantly share code, notes, and snippets.

@sshine

sshine/Wat.utop Secret

Created August 27, 2018 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sshine/8a43ce5c6bdf1deb664c1f5726ebebe2 to your computer and use it in GitHub Desktop.
Save sshine/8a43ce5c6bdf1deb664c1f5726ebebe2 to your computer and use it in GitHub Desktop.
# String.foldi ;;
- : bytes -> init:'a -> f:(int -> 'a -> String.elt -> 'a) -> 'a = <fun>
# String.foldi "Hello" ;;
- : init:'_a -> f:(int -> '_a -> String.elt -> '_a) -> '_a = <fun>
# String.foldi "Hello" (Buffer.create 4) ;;
- : init:(Buffer.t -> '_a) ->
f:(int -> (Buffer.t -> '_a) -> String.elt -> Buffer.t -> '_a) -> '_a
= <fun>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment