Favorite Tags
View questions based on your favorite tags across the Stack Exchange network

1 answer

Resharper 9 File Layout: defining sort order when sorting by access modifier not possible?

after installing R# 9.0 my custom file layout from 8.2 did not work anymore. I recreated the same pattern using the layout designer which is new in 9.0. The part I could not reproduce was the ...

1 answers | 1 hour ago by cob on Stack Overflow stackoverflow.com
0 answers

Stack allocated immutable arrays

I'm doing extensive computations in f# on short arrays of uint64; I'd like to stack allocate them to avoid the garbage collector running. In C++, I'd do this: int search(int n, uint64_t* data) { ...

1 answer

How to make ReSharper place delegated get-only properties in a single line?

It generates: public GameMode GameType { get { return _builder.GameType; } } But I want: public GameMode GameType { get { return _builder.GameType; } }

1 answers | 4 hours ago by Vlad on Stack Overflow stackoverflow.com
4 answers

F# advanced exercises

I've finished reading books on F# and I've done most of the exercises in the book which were kind of basic. Now I'm looking for more advanced exercises to improve my skills with the language and ...

1 answer

How do I generate a CSV reader/writer for a type in F#?

I'm using the type providers from the FSharp.Data library to generate types for the expected JSON responses I'm getting back from a web service call. This works very well when I'm generating them from ...

1 answer

Thai Visa: Will a Re-entry Help Me?

Currently on an ED Thai visa, which needs to be renew again in two weeks . Problem: I have to leave Thailand for 3 weeks in two days so I won't be able to extend my visa while in Thailand. I thought ...

1 answer

Parsing “x y z” with the precedence of multiply

I'm trying to write a parser for the Mathematica language in F# using FParsec. I have written one for a MiniML that supports the syntax f x y = (f(x))(y) with high precedence for function ...

1 answers | 16 hours ago by Jon Harrop on Stack Overflow stackoverflow.com
1 answer

Fourier transformation with mathdotnet in F#

I am trying to use the Math.NET numerics implementation of the FFT algorithm, but I must be doing something wrong because the output is always unit The following is the the setup: open ...

1 answer

Visual Studio claims variable is not initialized, but it has been in the constructor

I was messing around with WPF, creating a small calculator like application. Just wanting to try F# I wrote a class to handle all the math functions, and referenced it in my WPF application. In my C# ...

1 answers | 20 hours ago by James_Parsons on Stack Overflow stackoverflow.com
1 answer

Function type inference with recursive calls

I'm trying to implement a custom language that allows function return type to be inferred from its last statement. However, when a direct or indirect recursive function call is found, the type ...

1 answers | 21 hours ago by Impworks on Stack Overflow stackoverflow.com
2 answers

F# Skip Range Operator

I'm trying to generate lists of dates (time periods) in F# and I found my answer at (F# generate a sequence/array of dates) and it works perfectly. However I cannot wrap my ahead around the ...

2 answers | 21 hours ago by martinb on Stack Overflow stackoverflow.com
4 answers

Why does the power operator in F# only work for floating point numbers?

I have never seen a language have exponent or power operator only taking floating point numbers? For example: 2 ** 2 throws an error The type 'int' does not support any operators named 'Pow' Are ...

4 answers | 21 hours ago by unj2 on Stack Overflow stackoverflow.com
1 answer

Default recursion on recursive types

Idiomatic F# can nicely represent the classic recursive expression data structure: type Expression = | Number of int | Add of Expression * Expression | Multiply of Expression * ...

1 answers | 21 hours ago by rwallace on Stack Overflow stackoverflow.com
1 answer

How to parallelise symmetric workers?

If I have an async value work which I want duplicated and executed in parallel so that hardware capabilities for thread execution are exhausted, how would I do that? E.g., for a short specific ...

2 answers

Why are flexible types not allowed in record type definitions?

I'm trying this: type TS1<'state, 'action> = { actions : 'state -> #seq<'action> move : 'state -> 'action -> 'state state0 : 'state } But the type checker won't ...

1 answer

F# AsyncSeq speed issue

I am trying out AsyncSeq and I am confused by a speed issue I am having. Here is a fiddle of the code below. open System open FSharpx.Control let rec numbers n x = asyncSeq { yield n ...

2 answers

Using return type List<T> vs IEnumerable<T>

I've created a function foo which creates and returns a type of List<T>. ReSharper is recommending that I change the return type to IEnumberable<T>. However, I know in the functions that ...

6 answers

How does F#'s async really work?

I am trying to learn how async and let! work in F#. All the docs i've read seem confusing. What's the point of running an async block with Async.RunSynchronously? Is this async or sync? Looks like a ...

6 answers | 2 days ago by marcus on Stack Overflow stackoverflow.com
1 answer

Reference that tabulates which F# types are value types and which are reference types

Is there a good reference that tabulates which F# types are value types and which are reference types? Alternatively, is there a good way to query a type to determine which it is? Yes, I know that ...

1 answers | 2 days ago by wyer33 on Stack Overflow stackoverflow.com
2 answers

Deploying F# exe

I have an F# program I built in VS2013. I am intending to deploy this on a windows 2008 R2 server with .NET framework 4.5 installed. Now, when I build the program in visual studio, it creates an exe ...

2 answers | 2 days ago by RT1138 on Stack Overflow stackoverflow.com
1 answer

Outlook interop MailItem with F#

I am converting C# to F# for outlook email messages. This function will be called inside a try...with block if an exception occurs to email me. I normally use an SMTP mail service that works in the ...

1 answers | 2 days ago by RT1138 on Stack Overflow stackoverflow.com
1 answer

How to define a function to break an array of letters into a group of string

I have C# code like this // Class definition Class Letter { char c; int id; } // A C# function to obtain an array of letters Array[Letter] getLetters(); A function call from F# let L = ...

1 answers | 2 days ago by John Chain on Stack Overflow stackoverflow.com
0 answers

How to define a proper data structure for a parameter set

I need a data structure for the following: In a device that has memory slots, each of the slots has a set of parameters. These parameters have different types. The list of possible parameters is ...

1 answer

Is it possible to speed up footage by more than 4x in Sony Vegas Movie Studio?

I have set the clip playback speed to 4.000 (to run at 4x the orginial speed) as show below. This is as high as the software allows. I would like to go further, perhaps as much as 12x as fast. I ...

1 answer

F# SQL Type Provider Identity Insert

I'm currently using an F# sql type provider to migrate some data between one database to another. I need to be able to insert identity information (numeric ID column). The schema for the table has ...

1 answers | 2 days ago by Clint on Stack Overflow stackoverflow.com
1 answer

HOWTO Fix Exception Hell in List.head if list is empty

I need to pass head of a list to List.fold. What is the functional solution to handle ArgumentException for the below case if departments is empty. let result = employees |> List.fold (...) ...

0 answers

“Scope to this” operation for methods

Is there a way to scope to a method? I mean, if I have 10 projects but want to work with only one, I can scope to it, so that the others don't appear to clutter my screen. As it's useful, it would ...

2 answers

OpenTk with f# issue ("namespace or module OpenTK)

I know f# with opentk is very translatable from c#, however my problem is slightly less obvious because of the fact that f# isn't incredibly popular as it is. From writing open OpenTK right of ...

2 answers | 2 days ago by novasniff on Stack Overflow stackoverflow.com
0 answers

WebDriver Visual Studio 2010 and ReSharper APPCRASH

We use Visual Studio 2010 with ReSharper to handle and to run our webdriver (2.25.1) tests. Whenever I launch my test the browser (Firefox 12) starts but after a few second I got a window "Task runner ...

1 answer

Finding all unassociated labels in the ASP.NET project

I'm undertaking a Section 508 upgrade/conversion/whatever, and one thing that would speed me up a lot is an easy TODO list. A large offender is that we have <asp:label> tags without the ...

1 answers | Mar 27 at 8:51 by insta on Stack Overflow stackoverflow.com
15 30 50 per page
1 2 3