package ppx_deriving_madcast
Library deriving cast functions based on their types.
Install
Authors
Maintainers
Sources
v0.1.tar.gz
md5=312d4fcb58029810900c50c7cb9cfe69
Description
This package provides a PPX that allows to derive cast functions based on their types. For instance, [%madcast: ('a * string) -> ('a * int)] would be replaced by:
fun (x, y) ->
(x,
try int_of_string y
with Failure _ -> failwith "madcast: string -> int")
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page