Questions tagged [fsi]

fsi is the REPL (read-eval-print-loop) for the F# programming language.

fsi is the REPL (read-eval-print-loop) for the F# programming language.

fsi can either mean standalone console application or F# Interactive embedded in Visual Studio , that allow you to interactively send F# commands that are subsequently compiled and executed. The interface then replies with the type signature and result values, if any.

After which you are presented with a prompt and can start all over again (previously defined functions and variables are retained until you reset the session).

This is a good way to spike functions or do exploratory development.

MSDN info: http://msdn.microsoft.com/en-us/library/dd233175.aspx

81 questions
0
votes
1 answer

.fsx script ignoring a function call when I add a parameter to it

Alright, so I'm a happy fsx-script programmer, because I love how I can have the compiler shout at me when I do mistakes before they show up at runtime. However I've found a case which really bothers me because I was expecting that by doing some…
ympostor
  • 909
  • 7
  • 16
0
votes
1 answer

F# namespaces and modules : Awesome collections from Wikibooks

I'm trying to use the library AwesomeCollections on Wikibooks https://en.wikibooks.org/wiki/F_Sharp_Programming/Advanced_Data_Structures From that page, i have copied paste in 2 separate files code marked for .fsi and .fs I must admit i don't…
Fagui Curtain
  • 1,867
  • 2
  • 19
  • 34
0
votes
1 answer

F# command line (fsi) doesn't recognize function, compile error, why?

I tried F# under command line, it doesn't recognize function definition > let ref f n= - if(n<=2)then 1 - else f(n-1)+f(n-2) - ;; val ref : f:(int -> int) -> n:int -> int > printf "%i" (f 10) - ;; printf "%i" (f 10) …
Immanuel Kant
  • 517
  • 3
  • 8
0
votes
1 answer

cannot specify Target when running FAKE with fsi --exec

I want to execute FAKE script with fsi --exec because it is so much faster than using FAKE.exe. However, I cannot understand how to specify a target. This I can do: FAKE.exe build.fsx Clean This I want to do (but doesn't work, it will use the…
0
votes
1 answer

F# fsi.AddPrinter: Does AddPrinter have ability to take list apart?

In our project we use fsi.AddPrinter for printing type formula. To make it easier we include fsi.AddPrinter sprint_fol_formula in our fsx files to transform the AST results into human readable results. val inline sprint_fol_formula :…
Guy Coder
  • 24,501
  • 8
  • 71
  • 136
-1
votes
1 answer

when defining "fluid solid interface" in transient structural, the question mark keeps showing

screenshot here G'day, mates. I met a problem that I couldn't figure out. I built a simple model consisting of a cylinder(solid) and a cuboid(fluid) for simulating Kármán vortex street. And the cylinder is submerged in the fluid, so the entire…
106207436
  • 1
  • 2
1 2 3 4 5
6