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

1 answer

How to read float data from a file in F#

I have a file with float numbers and I want to read it and save the values in an array to do some math operations. Then I need to print the new array in another file. All the ways that I found reads ...

1 answers | 1 hour ago by Thaíla on Stack Overflow stackoverflow.com
1 answer

Why is there no Seq.partition in F#

In F# we have List.partition and Array.partition which return a tuple of lists and a tuple of arrays respectively. so, why is there no Seq.partition returning a tuple of sequences? here is a very ...

1 answers | 5 hours ago by Luiso on Stack Overflow stackoverflow.com
0 answers

Alea does not dispose memory correctly

The following F# code crashes on the third call with a no memory exception. Either I am missing something or Alea is not freeing memory correctly for some reason. I've tried it in both F# Interactive ...

0 answers

Dell XPS 15 L502X monitor light not off when using external monitor

I mainly use an external monitor (via HDMI) when using my XPS 15 (L502X), however, I noticed an annoying problem when I tried to update the Intel HD 3000 video card driver. After I started my ...

0 answers

How to use the DotSettings import feature in the Resharper Sonar plugin?

The new version (2.0) of the Resharper plugin for Sonar was extended with the feature of importing an existing Resharper DotSettings file. However, If I set a settings file when I create my quality ...

0 answers

Method parameters are being separated into new lines

Ever since I installed StyleCop, ReSharper has been forcing method parameters on seperate lines regardless of my settings. An example is: return this._context.ContentItems ...

1 answer

How to disable Resharper “Find Code Issues” in a Visual Studio solution folder?

In Resharper, I'm trying to fix all errors find in "Find Code Issues". In Visual Studio, I have a Solution Folder with a bunch of JavaScript librairies and MarkDown files. When I run "Find Code ...

2 answers

Resharper Clean-up Code - how to affect sorting of methods?

I've got a customized clean-up and it's almost 'there'. However, R# appears to want to sort the member methods, but at least it does not appear to be alphabetically. Is there a way to force that ...

2 answers | yesterday by Anders Juul on Stack Overflow stackoverflow.com
0 answers

User Control in Fsharp.Desktop.UI WPF Framework

I'm having some trouble adding a user control to my mainwindow.xaml for my F# WPF project. I have defined a user control here that I got directly from ...

2 answers

How to deal a card using F#

I've been working on modeling a popular card game (Love Letter) using F# to learn more about functional programming. module Game = open Cards open Players type Deck = Card list let dealACard ...

1 answer

Conflicting Versions of the Same Assembly

I am creating an F# project in Visual Studio, and I get the following warning for every .fs file in the project: warning FS0082: Found conflicts between different versions of the same dependent ...

1 answer

f#: Strange syntax in example using “.. in let ..”

I am reading through an example on RosettaCode and do not exactly know what the following line is doing. let min,subheap = findMin heap' in let rtn = root topnode It seems that findMin heap' is ...

1 answer

Is it possible to create an extension method using Resharper?

I would like to [alt, enter] on the Update method below (it doesn't exist) to create a new extension method. Is there a way to do this in Resharper? List<FootyTeam> existingTeams = ...

4 answers

How to resolve Resharper's “unused property” warning on properties solely for Display/Value Members?

I have defined two properties "Name" and "ID" for an object which I use for the DisplayMember and ValueMember of a ComboBox with a BindingList datasource. I recently installed Resharper to evaluate ...

3 answers

The two sides of this 'or' pattern bind different sets of variables?

The following code try to combine two match cases None and Some s when s <= aDate (Do "part 1" if date is None or date <= aDate). match date with | None | Some s when s <= aDate -> ...

3 answers | yesterday by dc7a9163d9 on Stack Overflow stackoverflow.com
1 answer

module vs type behavior difference on using F# lambda as actual argument to formal parameter that expects System.Func

Assume I have some library code like open System module Foo = let Invoke1 (action : Func<string>) = () let Invoke2 (action : Func<int, string>) = () let Invoke3 (key : int, ...

1 answers | yesterday by Lost In Translation on Stack Overflow stackoverflow.com
1 answer

Alias for active pattern?

I have the following definition in module Helper. module Helper let (|InvariantEqualLooooongName|_|) (str : string) arg = if String.Compare(str, arg, StringComparison.OrdinalIgnoreCase) = 0 then ...

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

Creating Table in SQl Server Using F#

Currently, I am attempting to create a SQl Server table using F# in Visual Studio. I have a list where each element is of the form: (column name * column type). Ideally, I would like to be able to ...

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

Jasmine, Angular, and Resharper: Trouble injecting a controller in a unit test

I'm having trouble injecting an angular controller into my jasmine spec file. The error begins with http://errors.angularjs.org/1.3.3/$injector/modulerr... I'm using Visual Studio 2013 and Resharper ...

2 answers

How to Return Specific Discriminated Union from Function

I have a hierarchy of discriminated unions. type SpecificNoun = | Noun | NounPhrase | Pronoun | PosesivePronoun type SpecificModifier = | Adverb //slowly, quickly, verb + ly (90% ...

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

Accessing an explicit conversion operator from F#

I am getting the following error when reading date values out of postgresql using npgsql: This expression was expected to have type DateTime but here has type NpgsqlTypes.NpgsqlDate ...

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

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 answers | 2 days ago by Mathias Weyel on Stack Overflow stackoverflow.com
2 answers

Haskell RPN calculator from F#

I am new at Haskell, could anyone suggest me how to rewrite folowing program in F# to Haskell so it will be as much as similar as possible. Don't know how to define stack data type in Haskell. ...

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

Insert row (as list) into SQL table from F#

In F#, suppose I have a MyType List List, where MyType can be a string, int, float, etc. Now suppose that each list in the list list represents a row in a table, so the list could look like: `myList ...

1 answer

How to reference the first node from the xml type provider

I cannot seem to be able to select only the first addresses postcode from the xml type provider. The fragment below is a fragment from larger XML document: <applicant> ...

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

Resharper Unit Tests not running

I'm trying to get started writing unit tests in a project. I wrote the createTest first and tried it. This test passed and I started writing my other tests. Now all my tests just say "Test not run". ...

0 answers

Resharper formatter: “Chop if long” for chained binary expressions possible?

I would like Resharper 9.1 Formatter to chop chained binary expressions if they are too long for one line, like this: int sum = longVariableNameA + longVariableNameB + longVariableNameC ...

0 answers

What is the difference between Visual Studio normal mode and safe mode?

I am using Visual Studio 2013 with Resharper on a VMWare VM. The VM and host OS have no performance problems. However, when I try to work on a large C# project in Visual Studio, the application ...

0 answers

F# on Mono and Windows - discrepancy with simple function

Can someone check my sanity here please. Given this simple function: let filterOut item l = l |> List.filter (fun t -> not (t = item)) let f = ["1";"2";"3"] |> filterOut "3" ...

Jul 28 at 15:00 by Kevin on Stack Overflow stackoverflow.com
2 answers

Resharper Exception rethrow possibly intended

Consider this method (pardon the sad attempt at Chuck Norris humor :) ): public class ChuckNorrisException : Exception { public ChuckNorrisException() { } public ...

2 answers | Jul 28 at 13:41 by dcp on Stack Overflow stackoverflow.com
15 30 50 per page
1 2 3