Questions tagged [funscript]

FunScript is a lightweight F# library that lets you rapidly develop single-page applications. You can connect to external data sources and call REST APIs with intellisense, produce dashboards using JavaScript visualization libraries and write asynchronous computations easily without explicit callbacks.

20 questions
0
votes
0 answers

Access "this" object in FunScript?

How do I acess the "this" object in FunScript? For example: let this = // ???? Globals.Dollar.Invoke(this).addClass("active")
monoceres
  • 4,722
  • 4
  • 38
  • 63
0
votes
1 answer

int -> string conversion in Funscript?

I'm just starting with Funscript and I'm getting some errors early on. When writing F# I usually convert ints to strings like so: let str = string 123 This gives me the following error during runtime: Ohanterat undantag: System.Exception: Could not…
monoceres
  • 4,722
  • 4
  • 38
  • 63
0
votes
2 answers

How to pass a "Function" type in FunScript?

I am encountering this Function type that I need to pass to a JQueryAnimationOptions object. I usually would pass a lambda to callbacks but these seem to be incompatible. I looked up every sample I could find in the FunScript repo. and couldn't find…
Zaid Ajaj
  • 680
  • 8
  • 16
0
votes
1 answer

Funscript and Async.RunSynchronously

I was playing with Funscript and wanted to get some result back of my workflow. I added those naive definition (no result cell) to the Async module. static member RunSynchronously(workflow:Async<'T>,…
nicolas
  • 9,549
  • 3
  • 39
  • 83
0
votes
1 answer

Async.RunSynchronously in funscript

async { return "asd" } |> Async.RunSynchronously This piece is throwing a compiler exception saying that "Could not compile expression: Call (None, RunSynchronously, [arg00, NewUnionCase (None), NewUnionCase (None)])" Is…
stride
  • 1,931
  • 1
  • 17
  • 20
1
2