package links
Facilities for optional debugging messages.
val enabled : bool Settings.setting
val if_set : bool Settings.setting -> (unit -> string) -> unit
if_set setting message
: print message()
if debugging is enabled and setting
is on.
val if_set_l : bool Settings.setting -> string lazy_t -> unit
if_set_l setting message
: print message
(a lazy expr) if debugging is enabled and setting
is on.
debug_time msg f
: run f()
and measure running time; print msg
with time and return result
debug_time_out f withtime
: run f()
and measure running time; call function withtime with running time as argument and then afterwards return result of f()
)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>