Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
78 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)
Andrey's user avatar
  • 6,641
2 votes
1 answer
68 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
54 views

I little bit strugle with understanding when a*b and a->b is casted (not sure if casting is good word) implicitly. Example: (I am not sure, if this is feature or bug) type a = { x: int } with ...
Vojtech G's user avatar
Advice
2 votes
6 replies
84 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,117
Best practices
2 votes
6 replies
114 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
72 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
83 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
68 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
72 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
63 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
0 votes
1 answer
80 views

I'm trying to write some physics equations, but I am unable to raise a value with units to some number This is the part I have a problem with r.Weight * 9.8<m / s^2> * (o.BarLength ** 3.) / (4. *...
Timeless0007297's user avatar
0 votes
0 answers
55 views

I'm new to F# and working on an entry project to get my feet wet. But, I'm having trouble understanding a particular design pattern related to the type-checking conducted in function returns. The ...
sadmicrowave's user avatar
  • 41.1k
0 votes
0 answers
110 views

I am trying to use XUnit for testing my f# code. module UnitTest1 open Xunit open Program open System.Diagnostics [<Fact>] let Test1 () = Debugger.Break() Assert.True(true) The test ...
Andrey's user avatar
  • 6,641
0 votes
0 answers
69 views

I'm trying to convert this C# example from the .NET Minimal APIs Quick Reference that sets up a keyed service. var builder = WebApplication.CreateBuilder(args); builder.Services.AddKeyedSingleton<...
Adam's user avatar
  • 1,183
1 vote
0 answers
71 views

In Entity Framework Core 9.0.9, the query builder fails with SQLite Syntax builder.Services.AddDbContext<MyDbContext>(fun options -> options.UseSqlite(connectionString) |> ignore It ...
Kalju Pärn's user avatar

15 30 50 per page
1
2 3 4 5
1139