Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
50 views

type WeatherTool (factory: IHttpClientFactory) = [...] member private _.ProcessResponse<'T> (response:HttpResponseMessage) : Task<Result<'T, string>> = task { [...] ...
Alex 75's user avatar
  • 3,370
1 vote
1 answer
60 views

I just noticed unexpected behavior in a newly created F# project. I have a Development.fsx file that is listed in a <Compile> tag within the .fsproj file so that it is displayed nicely in the ...
mark's user avatar
  • 199
1 vote
2 answers
72 views

I'm trying to load a type from an assembly at runtime that implements this interface which is in a project called PluginBase: type IPlugin = abstract member TestString: Option<string> with ...
JackEncore's user avatar
Advice
0 votes
6 replies
55 views

I have two lists (both lists of lists of ints), and want to do the following: (1) Take the first element of List 1 and use it as input to a function, then use List.map to map that function over all ...
SSShupe's user avatar
  • 13
1 vote
1 answer
94 views

Inside an async computation expression, I would like to be able to pass in a CancellationToken that cancels the child computation only (a.k.a. not the "ambient" token). I'm a little ...
Adam's user avatar
  • 1,256
0 votes
2 answers
122 views

Ionide debugger doesn't support f# now. Such expressions should be translated to c#. How can I see, say, the following expression: connections|>List.map(fun c->c.Probabilities) Edits: Tried the ...
Andrey's user avatar
  • 6,659
2 votes
1 answer
96 views

The Announcing F #7 page gives the example code type IAddition<'T when 'T :> IAddition<'T>> = static abstract op_Addition: 'T * 'T -> 'T type Number<'T when IAddition<'T&...
CarbonFlambe's user avatar
0 votes
1 answer
65 views

I am struggling a little bit with understanding when a*b and a->b is cast (not sure if casting is good word) implicitly. Example: (I am not sure if this is feature or bug) type a = { x: int } ...
Vojtech G's user avatar
Advice
2 votes
6 replies
114 views

Referring to the attached diagram for an example hierarchy of materials, how can I represent this in F#? Once represented I need to be able to add ANY/ALL of the materials in level 4 (L4) of the ...
Dib's user avatar
  • 2,137
Best practices
2 votes
6 replies
132 views

Is there a convenient way to short circuit a Seq.fold evaluation? For example, the following function evaluates if parenthesis are balanced in a string. let isBalanced str = (([], str) ||> Seq....
gileCAD's user avatar
  • 2,633
0 votes
0 answers
144 views

I recently installed Visual Studio 2026. My program is written in F# with MAUI. With Visual Studio 2022 it was working so far, since I installed VS 2026, it fails on VS 2022 as well. Prior VS 2026 I ...
Alex_P's user avatar
  • 3,042
Best practices
0 votes
6 replies
93 views

I have a Measurement type and a Constant type, like so type Measurement = private { value: Var uncertainty: float unit: Unit } static let getUncertainty v = ...
Timeless0007297's user avatar
0 votes
1 answer
78 views

I have a simple record type with float fields that I'm trying to define the exponentiation for, but I keep running into errors one after another. This was my first attempt: static member ( ** )(a, ...
Timeless0007297's user avatar
3 votes
1 answer
77 views

I have an F# solution with the following project structure: ProjectA Foo.fs Bar.Fs ClientA.fs ProjectB ClientB.fs Where ProjectB depends on ProjectA. Foo.fs defines a type: type Foo = { ...
Brian Berns's user avatar
  • 17.4k
0 votes
1 answer
66 views

I want to add LaTeX to my plot. I'm using XPlot.Plotly to make plots. let layout = Layout( title = "Plot of $\\frac{1}{t}$ vs h", xaxis = Xaxis(title = "...
Timeless0007297's user avatar

15 30 50 per page
1
2 3 4 5
1139