chunk_id
large_stringlengths
7
11
question_id
large_stringlengths
4
8
language
large_stringclasses
1 value
chunk_index
int64
0
5
chunk_text
large_stringlengths
128
2.78k
sparse_text
large_stringlengths
116
3.65k
dense_vector
listlengths
3.58k
3.58k
sparse_indices
listlengths
9
228
sparse_values
listlengths
9
228
export_source
large_stringclasses
1 value
35347420_c1
35347420
fsharp
1
let mutable a = 0 let mutable b = 0 let mutable c = 0 let mutable d = 0 for i in 1..maxLimit do for j in i..maxLimit do if sums.[bestI] = f n i + f n j then a <- i b <- j if sums.[bestMid] = f n i + f n j then c <- i d <- j Algorithm 2: let findNM x = let seq = {1..maxLimit} |> Seq.map (fun k -> (f n k, k)) let get2nd...
let mutable a = 0 let mutable b = 0 let mutable c = 0 let mutable d = 0 for i in 1..maxLimit do for j in i..maxLimit do if sums.[bestI] = f n i + f n j then a <- i b <- j if sums.[bestMid] = f n i + f n j then c <- i d <- j Algorithm 2: let findNM x = let seq = {1..maxLimit} |> Seq.map (fun k -> (f n k, k)) let get2nd...
[ -0.031494140625, 0.006988525390625, 0.009521484375, -0.005035400390625, -0.00185394287109375, 0.00081634521484375, 0.005706787109375, 0.0081787109375, 0.027099609375, -0.00726318359375, 0.0024871826171875, 0.01123046875, -0.01123046875, -0.00634765625, 0.008056640625, -0.022705078125, ...
[ 2633, 842, 22819, 10, 2203, 757, 876, 501, 104, 17, 615, 24084, 866, 6836, 54, 1647, 2174, 10554, 32168, 568, 1238, 997, 594, 532, 109847, 2783, 15573, 7413, 70480, 1022, 40, 864, 503, 62346, 16498, 472, 2046, 2208, 363, 4216, 275, 65...
[ 0.1092529296875, 0.1190185546875, 0.1749267578125, 0.05145263671875, 0.030914306640625, 0.1494140625, 0.1192626953125, 0.0885009765625, 0.155517578125, 0.0806884765625, 0.01690673828125, 0.1336669921875, 0.1080322265625, 0.1959228515625, 0.028594970703125, 0.1610107421875, 0.03814697...
embed
44206776_c0
44206776
fsharp
0
Title: Pretty print discriminated unions Problem title: Pretty print discriminated unions Tags: .net, discriminated-union, f%23, pretty-print Problem: Pretty print discriminated unions I have an Option type: type Option<'a> = | Some of value:'a | None type MyString = string // Syntax type type-name = | case-identifier1...
Pretty print discriminated unions Pretty print discriminated unions .net discriminated-union f%23 pretty-print Pretty Option Some None MyString Syntax case-identifier1 fieldname1 type1 fieldname2 type2 case-identifier2 fieldname3 type3 fieldname4 type4 fieldname1:type1 value1 fieldname2:type2 value2 Example value:MyStr...
[ -0.0068359375, 0.00185394287109375, 0.006378173828125, 0.01434326171875, -0.022216796875, -0.00830078125, -0.0023193359375, -0.0093994140625, 0.005126953125, 0.009521484375, 0.01434326171875, -0.0050048828125, 0.004364013671875, -0.0135498046875, 0.00494384765625, 0.0164794921875, 0....
[ 197570, 28412, 55970, 3674, 69941, 7, 1179, 87046, 1238, 3949, 3742, 28875, 35662, 86769, 31384, 438, 2646, 71713, 214, 19010, 86531, 7225, 42485, 418, 44457, 11627, 10644, 304, 363, 617, 50986, 34292, 89536, 31852, 765, 3444, 9844, 678, 93...
[ 0.2362060546875, 0.2181396484375, 0.23681640625, 0.09442138671875, 0.191650390625, 0.0261688232421875, 0.133544921875, 0.1519775390625, 0.0212249755859375, 0.00543212890625, 0.0875244140625, 0.1866455078125, 0.1732177734375, 0.21484375, 0.048583984375, 0.0582275390625, 0.083740234375...
embed
17393524_c0
17393524
fsharp
0
Title: In F# is it possible to create a pattern that will match multiple cases of a discriminate union? Problem title: In F# is it possible to create a pattern that will match multiple cases of a discriminate union? Tags: f%23, pattern-matching, .net Problem: In F# is it possible to create a pattern that will match mul...
In F# is it possible to create a pattern that will match multiple cases of a discriminate union? In F# is it possible to create a pattern that will match multiple cases of a discriminate union? f%23 pattern-matching .net Example Foo Bar Baz Qux NoValue ex:Example In F# is it possible to create a pattern that will match...
[ -0.015625, 0.02197265625, 0.003570556640625, -0.00445556640625, -0.0255126953125, -0.01214599609375, -0.007171630859375, 0.008056640625, 0.02685546875, -0.0084228515625, 0.018310546875, -0.007354736328125, 0.004974365234375, -0.00555419921875, 0.00634765625, 0.006317138671875, 0.0197...
[ 360, 563, 4904, 83, 7722, 28282, 103510, 1221, 14858, 48716, 50218, 55970, 67, 69941, 1238, 3949, 3742, 98753, 214, 1179, 89536, 9572, 31, 3253, 36490, 10022, 425, 438, 856, 50770, 11, 3674, 1884, 903, 318, 3917, 28484, 25632, 32354, 1549...
[ 0.0310211181640625, 0.1324462890625, 0.2095947265625, 0.008270263671875, 0.1453857421875, 0.138427734375, 0.23974609375, 0.042236328125, 0.2283935546875, 0.2044677734375, 0.1546630859375, 0.2003173828125, 0.0882568359375, 0.16650390625, 0.09619140625, 0.037353515625, 0.1397705078125,...
embed
30225001_c0
30225001
fsharp
0
Title: How to use SequenceEqual with StringComparer.OrdinalIgnoreCase in F#? Problem title: How to use SequenceEqual with StringComparer.OrdinalIgnoreCase in F#? Tags: .net, f%23, linq Problem: How to use SequenceEqual with StringComparer.OrdinalIgnoreCase in F#? In C# I have this code snippet: string[] words = { "how"...
How to use SequenceEqual with StringComparer.OrdinalIgnoreCase in F#? How to use SequenceEqual with StringComparer.OrdinalIgnoreCase in F#? .net f%23 linq How SequenceEqual StringComparer.OrdinalIgnoreCase words2 YOU words.SequenceEqual StringComparer Collections.Generic.IEqualityComparer StringComparer.OrdinalIgnore H...
[ -0.005035400390625, 0.00408935546875, -0.0108642578125, 0.019287109375, 0.00909423828125, -0.00836181640625, 0.01953125, 0.00445556640625, -0.0091552734375, -0.01080322265625, -0.000152587890625, 0.03271484375, 0.01361083984375, 0.016357421875, -0.0155029296875, -0.013916015625, -0.0...
[ 11249, 4527, 503, 944, 3956, 647, 71723, 678, 23351, 214, 108161, 147, 56, 143045, 73, 289, 11137, 107, 441, 6991, 563, 4904, 1179, 1238, 3742, 44982, 34153, 304, 82310, 68220, 135932, 161789, 18151, 16750, 34292, 29568, 9969, 34759, 186992...
[ 0.0273284912109375, 0.099853515625, 0.0670166015625, 0.145751953125, 0.10150146484375, 0.0791015625, 0.219482421875, 0.05255126953125, 0.1602783203125, 0.03167724609375, 0.1253662109375, 0.143310546875, 0.0845947265625, 0.09228515625, 0.0631103515625, 0.045074462890625, 0.14318847656...
embed
35788706_c0
35788706
fsharp
0
Title: Converting a list of comma delimited strings to a list of list of ints Problem title: Converting a list of comma delimited strings to a list of list of ints Tags: f%23 Problem: Converting a list of comma delimited strings to a list of list of ints I have a data set like such 1,2 3,4 5,6 7,8 9,0 When I read it us...
Converting a list of comma delimited strings to a list of list of ints Converting a list of comma delimited strings to a list of list of ints f%23 Converting Data System.IO.File.ReadAllLines Array.toList Seq.map s.Split System.Int32.Parse Converting a list of comma delimited strings to a list of list of ints I have a d...
[ -0.00167083740234375, -0.0079345703125, -0.00244140625, 0.036376953125, 0.00067138671875, 0.032958984375, 0.01611328125, 0.005889892578125, 0.0013275146484375, -0.004058837890625, -0.0172119140625, -0.00634765625, 0.003814697265625, 0.019287109375, -0.005584716796875, -0.010009765625, ...
[ 1657, 814, 1916, 5303, 96117, 8, 93343, 297, 79315, 7, 47, 111, 23, 933, 3742, 11809, 12353, 17780, 174350, 31345, 43512, 93232, 69253, 53, 188, 154663, 864, 62346, 4353, 18, 6460, 28636, 2053, 5423, 6044, 12301, 4764, 2046, 10298, 2060, ...
[ 0.047454833984375, 0.1595458984375, 0.0621337890625, 0.1832275390625, 0.224365234375, 0.1107177734375, 0.185791015625, 0.049102783203125, 0.2315673828125, 0.016204833984375, 0.094970703125, 0.0643310546875, 0.146240234375, 0.18408203125, 0.1199951171875, 0.02001953125, 0.086181640625...
embed
54577827_c0
54577827
fsharp
0
Title: How do I convert a C# tuple into an F# tuple? Problem title: How do I convert a C# tuple into an F# tuple? Tags: f%23 Problem: How do I convert a C# tuple into an F# tuple? How do I convert a C# tuple into an F# tuple? Specifically, I have a C# implementation of a Result type: public class Result<T,E> { public R...
How do I convert a C# tuple into an F# tuple? How do I convert a C# tuple into an F# tuple? f%23 How Result Error databaseService.getSomething Async.AwaitTask Async.RunSynchronously result.Ok How do I convert a C# tuple into an F# tuple? How do I convert a C# tuple into an F# tuple? Specifically, I have a C# implementa...
[ 0.010986328125, 0.019775390625, 0.007720947265625, -0.006683349609375, 0.0184326171875, 0.004058837890625, -0.031005859375, -0.0150146484375, 0.0159912109375, -0.00811767578125, 0.00029754638671875, 0.00146484375, -0.007354736328125, 0.0264892578125, 0.004974365234375, 0.0086669921875,...
[ 11249, 96760, 313, 4904, 370, 8705, 3934, 142, 563, 1238, 3949, 3742, 126684, 212059, 63399, 121979, 3794, 64113, 12654, 634, 9874, 163321, 217835, 1900, 16750, 73852, 87, 10, 208124, 10644, 3444, 5646, 34292, 9972, 4527, 18151, 89536, 25632,...
[ 0.053466796875, 0.1380615234375, 0.0859375, 0.2381591796875, 0.1397705078125, 0.2122802734375, 0.0723876953125, 0.05377197265625, 0.1231689453125, 0.07012939453125, 0.00750732421875, 0.120361328125, 0.1922607421875, 0.1553955078125, 0.06884765625, 0.09503173828125, 0.0074462890625, ...
embed
21151535_c0
21151535
fsharp
0
Title: F# Removing duplicates from list with function Problem title: F# Removing duplicates from list with function Tags: f%23, list Problem: F# Removing duplicates from list with function I want to create a function that takes a list and returns a list with removed duplicates. let removedupes list1 = let list2 = [] le...
F# Removing duplicates from list with function F# Removing duplicates from list with function f%23 list list Removing list1 list2 list1.Tail F# Removing duplicates from list with function I want to create a function that takes a list and returns a list with removed duplicates. Im using this "mem" function to go trough ...
[ -0.0174560546875, 0.0244140625, 0.025390625, 0.00311279296875, 0.005615234375, 0.0007476806640625, -0.000606536865234375, 0.021484375, -0.01129150390625, -0.027587890625, 0.0020751953125, 0.01495361328125, 0.005096435546875, 0.0235595703125, 0.0208740234375, 0.02783203125, 0.01660156...
[ 563, 4904, 853, 432, 6496, 171763, 1636, 1295, 5303, 678, 32354, 1238, 3949, 3742, 418, 304, 9874, 379, 3444, 28282, 51776, 10, 30646, 7, 184750, 3370, 17368, 903, 37138, 3428, 58968, 1957, 2174, 34292, 21771, 32316, 21342, 195625, 1830, ...
[ 0.12890625, 0.19091796875, 0.05609130859375, 0.1544189453125, 0.0273895263671875, 0.2685546875, 0.127197265625, 0.1300048828125, 0.2041015625, 0.0830078125, 0.2064208984375, 0.1142578125, 0.0640869140625, 0.18115234375, 0.06585693359375, 0.10321044921875, 0.1112060546875, 0.0784912...
embed
50948628_c0
50948628
fsharp
0
Title: FParsec - Collect list of tuples Problem title: FParsec - Collect list of tuples Tags: f%23, fparsec, parsing Problem: FParsec - Collect list of tuples I use FParsec and I need to parse expressions like a and b or c and my AST node for these expressions looks like type Expression = Expression of Operator seq * V...
FParsec - Collect list of tuples FParsec - Collect list of tuples f%23 fparsec parsing FParsec Collect Expression Operator Value many1 Parser chainl1 FParsec - Collect list of tuples I use FParsec and I need to parse expressions like a and b or c and my AST node for these expressions looks like So basically I do not ca...
[ 0.0169677734375, 0.0020599365234375, -0.00390625, 0.025146484375, -0.007080078125, 0.01470947265625, 0.0026702880859375, -0.01904296875, 0.006744384765625, -0.025634765625, -0.0030364990234375, 0.0235595703125, -0.0019683837890625, 0.0125732421875, 0.0032958984375, -0.01055908203125, ...
[ 563, 28636, 39797, 138521, 5303, 370, 99726, 1238, 3949, 3742, 2500, 366, 6953, 25129, 150922, 190060, 5941, 418, 2392, 2189, 121293, 141, 111, 4527, 3871, 184, 125195, 10, 136, 876, 501, 48963, 110, 33342, 959, 517, 7440, 39933, 142424, ...
[ 0.1265869140625, 0.1556396484375, 0.21533203125, 0.17431640625, 0.1212158203125, 0.1099853515625, 0.19775390625, 0.094482421875, 0.005615234375, 0.1048583984375, 0.1322021484375, 0.1636962890625, 0.00299072265625, 0.131103515625, 0.230712890625, 0.1689453125, 0.1787109375, 0.088500...
embed
23469337_c0
23469337
fsharp
0
Title: Does F# 3.1 require a specific runtime to be installed? Problem title: Does F# 3.1 require a specific runtime to be installed? Tags: .net, f%23-3.0, f%23, visual-studio-2012 Problem: Does F# 3.1 require a specific runtime to be installed? I've written some Visual Studio extensions that support VS2012+VS2013. I'd...
Does F# 3.1 require a specific runtime to be installed? Does F# 3.1 require a specific runtime to be installed? .net f%23-3.0 f%23 visual-studio-2012 a Does visual-studio-2012 Does F# 3.1 require a specific runtime to be installed? I've written some Visual Studio extensions that support VS2012+VS2013. I'd like to use F...
[ -0.0107421875, 0.0111083984375, 0.01116943359375, -0.012939453125, -0.0213623046875, 0.0113525390625, -0.0142822265625, 0.004058837890625, -0.0022125244140625, 0.005859375, 0.0162353515625, -0.01251220703125, -0.013427734375, 0.0023040771484375, 0.00994873046875, -0.00396728515625, 0...
[ 101790, 563, 4904, 45151, 64209, 29458, 11675, 6032, 20600, 1179, 1238, 27495, 132265, 3742, 21176, 52629, 54458, 10, 297, 59121, 73372, 22968, 111938, 7, 8060, 44160, 10693, 1328, 47207, 7735, 25, 1884, 47, 4527, 39, 10176, 55681, 5281, 30...
[ 0.0506591796875, 0.173095703125, 0.262939453125, 0.27880859375, 0.172607421875, 0.1451416015625, 0.1612548828125, 0.2164306640625, 0.194091796875, 0.134521484375, 0.1485595703125, 0.035186767578125, 0.1866455078125, 0.072265625, 0.1669921875, 0.1812744140625, 0.156494140625, 0.0115...
embed
15462741_c0
15462741
fsharp
0
Title: FSI and load order Problem title: FSI and load order Tags: f%23-interactive, fsi, f%23 Problem: FSI and load order b.fsx(6,15): error FS0039: The namespace or module 'na' is not defined > Which makes sense if the load order decided is the one displayed. If I send the 2 lines from userdep.fsx, then I'd have to re...
FSI and load order FSI and load order f%23-interactive fsi f%23 FSI a.fsx na.ma.var b.fsx c.fsx userdep.fsx Loading Documents Visual Studio Projects Library3 FS0039 FSI_0002.na FSI_0002.nb FSI_0003.na FSI_0003.nc FSI and load order in a.fsx : in b.fsx : in c.fsx : in userdep.fsx : in user.fsx: Now if I send that last i...
[ 0.0185546875, -0.00555419921875, 0.004974365234375, 0.01019287109375, 0.00421142578125, 0.00482177734375, 0.015869140625, -0.00836181640625, 0.019287109375, -0.01177978515625, -0.005462646484375, 0.01239013671875, -0.0020599365234375, -0.0029449462890625, 0.018310546875, -0.03088378906...
[ 563, 9902, 136, 72367, 12989, 1238, 27495, 10433, 71232, 172, 3742, 10, 17447, 425, 24, 192, 1961, 876, 38937, 112, 254, 228006, 43101, 73372, 22968, 27331, 103835, 363, 93774, 9323, 76, 8766, 23, 5, 501, 25379, 4568, 188336, 28032, 47, ...
[ 0.127197265625, 0.23388671875, 0.1226806640625, 0.2381591796875, 0.245361328125, 0.06787109375, 0.0831298828125, 0.078857421875, 0.03912353515625, 0.1298828125, 0.044586181640625, 0.0948486328125, 0.145751953125, 0.138427734375, 0.09259033203125, 0.010406494140625, 0.0736083984375, ...
embed
28090247_c1
28090247
fsharp
1
Seq |> Seq.filter (fun record -> record.field2.IsSome) |> Seq.map (fun record -> functionTakingString (record.field2 |?! "Should never happen")) // Now compiles ...but it doesn't seem ideal. I could use Unchecked.defaultof instead of raising an exception, but I'm not sure that's any better. The crux of it is that the N...
Seq |> Seq.filter (fun record -> record.field2.IsSome) |> Seq.map (fun record -> functionTakingString (record.field2 |?! "Should never happen")) // Now compiles ...but it doesn't seem ideal. I could use Unchecked.defaultof instead of raising an exception, but I'm not sure that's any better. The crux of it is that the N...
[ -0.005096435546875, -0.001617431640625, -0.0022430419921875, 0.0052490234375, 0.005401611328125, -0.0013275146484375, 0.01458740234375, -0.00860595703125, 0.006927490234375, 0.01251220703125, 0.01214599609375, 0.0303955078125, 0.00124359130859375, -0.01080322265625, 0.004119873046875, ...
[ 503, 864, 120337, 16498, 17164, 28394, 5442, 29598, 8912, 282, 62346, 32354, 51654, 214, 71713, 32271, 304, 4730, 115729, 52366, 8306, 53383, 14240, 9969, 1340, 48903, 6397, 992, 78292, 297, 214810, 4390, 64457, 40129, 131527, 9077, 11522, 22...
[ 0.1571044921875, 0.23779296875, 0.255615234375, 0.1883544921875, 0.2362060546875, 0.1649169921875, 0.1124267578125, 0.07586669921875, 0.08880615234375, 0.1258544921875, 0.1497802734375, 0.1292724609375, 0.1976318359375, 0.0977783203125, 0.147705078125, 0.194580078125, 0.109375, 0.0...
embed
11696484_c1
11696484
fsharp
1
interested, I used this as one solution for Common Service Locator with the three functions below. Each service requested must support null , so if the service class is defined in F#, you need to add the [<AllowNullLiteral>] : let private getServiceLocator () = try Some(Microsoft.Practices.ServiceLocation.ServiceLocat...
interested, I used this as one solution for Common Service Locator with the three functions below. Each service requested must support null , so if the service class is defined in F#, you need to add the [<AllowNullLiteral>] : let private getServiceLocator () = try Some(Microsoft.Practices.ServiceLocation.ServiceLocat...
[ -0.00799560546875, 0.03271484375, -0.007293701171875, -0.023193359375, 0.01422119140625, -0.0107421875, 0.0257568359375, -0.015625, 0.003265380859375, -0.0216064453125, -0.01025390625, 0.038818359375, 0.0020751953125, -0.024169921875, 0.02099609375, -0.0284423828125, 0.00262451171875...
[ 60892, 87, 11814, 903, 1632, 29806, 151301, 12349, 135016, 1290, 17262, 32354, 35064, 5, 98423, 4516, 50336, 297, 8110, 8060, 56574, 18507, 61924, 23, 563, 4904, 4, 3871, 47, 15190, 41566, 18444, 1181, 9506, 720, 289, 2633, 14375, 2046, 1...
[ 0.138916015625, 0.0243377685546875, 0.0810546875, 0.06884765625, 0.0574951171875, 0.13525390625, 0.1671142578125, 0.169677734375, 0.2056884765625, 0.1390380859375, 0.10443115234375, 0.1710205078125, 0.05499267578125, 0.01910400390625, 0.08453369140625, 0.22021484375, 0.1993408203125,...
embed
36133442_c0
36133442
fsharp
0
Title: FSharp.Data HTTP request - unable to set request timeout Problem title: FSharp.Data HTTP request - unable to set request timeout Tags: f%23-data, f%23 Problem: FSharp.Data HTTP request - unable to set request timeout We have a simple F# console app that sends a HTTP POST request to a WebAPI endpoint via FSharp.D...
FSharp.Data HTTP request - unable to set request timeout FSharp.Data HTTP request - unable to set request timeout f%23-data f%23 FSharp.Data HTTP Http.Request request.Timeout System.Net.HttpWebRequest FSharp.Data HTTP request - unable to set request timeout We have a simple F# console app that sends a HTTP POST request...
[ 0.0169677734375, 0.038818359375, 0.0101318359375, -0.0166015625, 0.007110595703125, -0.005950927734375, 0.0106201171875, 0.00799560546875, -0.00750732421875, -0.01214599609375, 0.0206298828125, -0.001983642578125, -0.027099609375, -0.01336669921875, 0.006500244140625, -0.00741577148437...
[ 93774, 3467, 254, 137989, 135913, 50336, 51, 2886, 5423, 1733, 6056, 1238, 10135, 3742, 3062, 75616, 70059, 24447, 8781, 563, 4904, 130250, 4027, 81903, 74220, 38496, 5, 572, 4332, 6, 17368, 178036, 13, 171859, 57266, 127689, 66339, 114122, ...
[ 0.107666015625, 0.21142578125, 0.1878662109375, 0.1617431640625, 0.2227783203125, 0.2086181640625, 0.0784912109375, 0.139892578125, 0.1351318359375, 0.182373046875, 0.166748046875, 0.03192138671875, 0.07037353515625, 0.043060302734375, 0.109375, 0.1217041015625, 0.160400390625, 0.0...
embed
74760023_c1
74760023
fsharp
1
LazyList<'a>) -> 'a -> RoseTree<'a> then the seed would be something like int * RoseTree<unit> but it seems that the unfolder function generates each subtree effectively in isolation to every other subtree by generating a list of new seeds. (this is quite surprising, I felt that 'unfold' was the goto function to gener...
LazyList<'a>) -> 'a -> RoseTree<'a> then the seed would be something like int * RoseTree<unit> but it seems that the unfolder function generates each subtree effectively in isolation to every other subtree by generating a list of new seeds. (this is quite surprising, I felt that 'unfold' was the goto function to gener...
[ -0.0020904541015625, 0.0272216796875, -0.00726318359375, -0.01190185546875, 0.0025634765625, -0.00396728515625, -0.0211181640625, -0.009033203125, 0.0177001953125, -0.0615234375, 0.0026702880859375, 0.00537109375, 0.00396728515625, 0.043212890625, -0.00482177734375, -0.00982666015625, ...
[ 239, 3285, 154663, 24009, 62731, 13, 40, 297, 186, 18, 309, 51, 42822, 56, 32354, 139392, 12638, 1614, 62600, 191984, 219488, 12663, 5303, 3525, 212615, 4163, 31, 53201, 5570, 5423, 7477, 43315, 103510, 50986, 67413, 1632, 831, 11814, 903, ...
[ 0.1263427734375, 0.1751708984375, 0.240234375, 0.136474609375, 0.2261962890625, 0.072265625, 0.1197509765625, 0.1551513671875, 0.0072021484375, 0.035125732421875, 0.10552978515625, 0.14111328125, 0.2034912109375, 0.1466064453125, 0.1448974609375, 0.1395263671875, 0.04840087890625, ...
embed
16807839_c0
16807839
fsharp
0
Title: Why isn&#x27;t up-casting automatic in f# Problem title: Why isn&#x27;t up-casting automatic in f# Tags: casting, f%23 Problem: Why isn't up-casting automatic in f# I was implementing a C# interface in F# that looked something like: public interface IThings { Stream ThingsInAStream() } My implementation looked s...
Why isn&#x27;t up-casting automatic in f# Why isn&#x27;t up-casting automatic in f# casting f%23 Why IThings Stream ThingsInAStream FSharpThings this.ThingsInAStream MemoryStream IEnumerable f.First Why isn't up-casting automatic in f# I was implementing a C# interface in F# that looked something like: My implementatio...
[ 0.00543212890625, 0.0196533203125, 0.01141357421875, 0.00013446807861328125, 0.008544921875, 0.009521484375, -0.00689697265625, 0.0185546875, 0.017822265625, -0.012451171875, -0.0024261474609375, 0.00836181640625, -0.00567626953125, 0.019287109375, -0.0027008056640625, -0.0257568359375...
[ 44084, 56112, 3768, 18, 1257, 55741, 214, 101038, 23, 1238, 4904, 176050, 5959, 33059, 115061, 119175, 4153, 284, 93774, 3467, 254, 20800, 5180, 903, 172681, 2606, 56, 2886, 207263, 9, 29479, 101758, 563, 54811, 208124, 26008, 2301, 28219, ...
[ 0.09423828125, 0.0985107421875, 0.0548095703125, 0.134033203125, 0.1658935546875, 0.1878662109375, 0.044952392578125, 0.24951171875, 0.057373046875, 0.1192626953125, 0.2015380859375, 0.18603515625, 0.0028076171875, 0.1104736328125, 0.2388916015625, 0.1640625, 0.07403564453125, 0.06...
embed
65149034_c1
65149034
fsharp
1
T2 = … The main problem with this approach is that you have to manually type in and order the generic arguments every time you use the function. I would have preferred being able to specify a single tuple type instead, in combination with type aliases for commonly used tuple types, like so: //Obviously won’t compile, b...
T2 = … The main problem with this approach is that you have to manually type in and order the generic arguments every time you use the function. I would have preferred being able to specify a single tuple type instead, in combination with type aliases for commonly used tuple types, like so: //Obviously won’t compile, b...
[ 0.005950927734375, -0.0016937255859375, 0.0130615234375, 0.01129150390625, 0.00543212890625, 0.000446319580078125, -0.0167236328125, -0.01373291015625, 0.01495361328125, -0.041259765625, -0.022216796875, 0.010986328125, -0.0220947265625, 0.00262451171875, -0.008056640625, -0.0037078857...
[ 384, 304, 2203, 153, 5201, 2967, 903, 51515, 23009, 10644, 23, 12989, 189534, 10750, 7, 11907, 1733, 4527, 32354, 2806, 765, 12601, 2822, 19048, 40140, 18929, 11001, 370, 8705, 162515, 55109, 90, 39210, 11814, 52895, 9969, 1340, 58755, 1884...
[ 0.149658203125, 0.1917724609375, 0.119873046875, 0.0059814453125, 0.053680419921875, 0.1632080078125, 0.037109375, 0.161865234375, 0.0875244140625, 0.1959228515625, 0.059417724609375, 0.149658203125, 0.1746826171875, 0.2042236328125, 0.013702392578125, 0.052947998046875, 0.0635375976...
embed
28947873_c0
28947873
fsharp
0
Title: How does the F# compiler know that a C# method is being called and that a syntactic tuple is needed for the parameters? Problem title: How does the F# compiler know that a C# method is being called and that a syntactic tuple is needed for the parameters? Tags: f%23, c%23 Problem: How does the F# compiler know th...
How does the F# compiler know that a C# method is being called and that a syntactic tuple is needed for the parameters? How does the F# compiler know that a C# method is being called and that a syntactic tuple is needed for the parameters? f%23 c%23 How MyClsas.Add How does the F# compiler know that a C# method is bein...
[ -0.01043701171875, 0.0162353515625, -0.006072998046875, 0.0196533203125, 0.005615234375, 0.0186767578125, -0.0120849609375, -0.00592041015625, -0.00927734375, -0.034912109375, -0.0036163330078125, -0.0174560546875, -0.029296875, 0.02978515625, 0.011962890625, -0.0142822265625, -0.001...
[ 11249, 563, 4904, 9969, 34759, 3714, 313, 55300, 8035, 35839, 10, 6002, 102, 49086, 370, 8705, 44841, 171859, 83, 100, 1238, 3742, 2646, 441, 20845, 7, 4028, 136, 115081, 47, 150624, 99726, 2367, 159029, 1295, 120384, 237, 100094, 765, 90...
[ 0.040924072265625, 0.130126953125, 0.2266845703125, 0.15087890625, 0.16796875, 0.129638671875, 0.07366943359375, 0.17822265625, 0.03363037109375, 0.127685546875, 0.0045166015625, 0.126708984375, 0.1497802734375, 0.151611328125, 0.130126953125, 0.187744140625, 0.1619873046875, 0.192...
embed
63270841_c0
63270841
fsharp
0
Title: How to sum values in F# Map collection Problem title: How to sum values in F# Map collection Tags: f%23 Problem: How to sum values in F# Map collection I have a Map<string,int> where I want to sum all values. It will be used as word dictionary in a toy spelling corrector which is described here . Naive attempt l...
How to sum values in F# Map collection How to sum values in F# Map collection f%23 How Map Map.toSeq Seq.sumBy MapFn wc:MapFn WordMap WORDS.values WORDS Counter big.txt How to sum values in F# Map collection I have a Map<string,int> where I want to sum all values. It will be used as word dictionary in a toy spelling co...
[ -0.0042724609375, -0.0034942626953125, 0.0028076171875, -0.0031585693359375, -0.038330078125, -0.01422119140625, 0.004180908203125, 0.00994873046875, -0.003173828125, -0.02294921875, -0.00640869140625, 0.0194091796875, 0.0169677734375, 0.0196533203125, 0.020751953125, -0.01287841796875...
[ 11249, 47, 10554, 142424, 23, 563, 4904, 42719, 42486, 1238, 3742, 188, 4233, 864, 503, 11832, 75358, 919, 19, 92922, 166179, 22543, 36639, 27494, 197956, 6957, 124326, 91693, 4288, 3444, 756, 11814, 2565, 10763, 6635, 72713, 10010, 2069, 1...
[ 0.060791015625, 0.07440185546875, 0.26806640625, 0.23779296875, 0.07281494140625, 0.1309814453125, 0.2060546875, 0.2193603515625, 0.1990966796875, 0.07818603515625, 0.1475830078125, 0.03948974609375, 0.032257080078125, 0.1343994140625, 0.0153350830078125, 0.2386474609375, 0.084716796...
embed
19439996_c0
19439996
fsharp
0
Title: alea.cuBase and CUBLAS Problem title: alea.cuBase and CUBLAS Tags: f%23, cudafy.net, aleagpu Problem: alea.cuBase and CUBLAS I'm starting down the exciting road of GPU programming, and if I'm going to do some heavyweight number-crunching, I'd like to use the best libraries that are out there. I would especially ...
alea.cuBase and CUBLAS alea.cuBase and CUBLAS f%23 cudafy.net aleagpu alea.cuBase CUBLAS cudafy.net alea.cuBase and CUBLAS I'm starting down the exciting road of GPU programming, and if I'm going to do some heavyweight number-crunching, I'd like to use the best libraries that are out there. I would especially like to u...
[ 0.03369140625, 0.01287841796875, 0.018310546875, -0.007568359375, 0.0086669921875, 0.00445556640625, 0.0208740234375, 0.0028228759765625, 0.007171630859375, -0.020751953125, -0.009521484375, 0.00482177734375, -0.005889892578125, -0.0118408203125, -0.0230712890625, -0.00225830078125, ...
[ 662, 11, 1010, 63473, 13, 136, 313, 32338, 46705, 1238, 3742, 314, 85, 18929, 1179, 1766, 72134, 7565, 136950, 33816, 162808, 56037, 4, 87, 25, 39, 47, 99162, 165598, 14012, 9, 47913, 59207, 1884, 4527, 70, 2965, 35773, 1810, 2685, 571,...
[ 0.13818359375, 0.1590576171875, 0.175048828125, 0.2005615234375, 0.1163330078125, 0.054595947265625, 0.062469482421875, 0.121337890625, 0.218017578125, 0.0182647705078125, 0.0278472900390625, 0.1898193359375, 0.0965576171875, 0.201904296875, 0.043426513671875, 0.14013671875, 0.024673...
embed
11819876_c0
11819876
fsharp
0
Title: F# Pattern Matching with when clause Problem title: F# Pattern Matching with when clause Tags: f%23 Problem: F# Pattern Matching with when clause Hello I have written the following code. My objective was to write a function called getWoeid which will check if the command line parameter is an array with 1 element...
F# Pattern Matching with when clause F# Pattern Matching with when clause f%23 Pattern Matching System System.Xml Int32.TryParse Starting Some Usage XmlRead WOEID EntryPoint Failure None F# Pattern Matching with when clause Hello I have written the following code. My objective was to write a function called getWoeid wh...
[ -0.0194091796875, 0.0012359619140625, -0.01214599609375, 0.0107421875, 0.005889892578125, 0.00469970703125, -0.01409912109375, -0.0021514892578125, 0.00933837890625, -0.0013580322265625, 0.0218505859375, -0.0013885498046875, -0.006866455078125, -0.01507568359375, 0.0130615234375, -0.01...
[ 563, 4904, 9876, 22766, 67407, 214, 678, 3229, 70731, 13, 1238, 3742, 12353, 1542, 7237, 6460, 618, 1294, 28636, 184, 13794, 1193, 31345, 43789, 647, 7146, 15123, 147534, 190355, 35378, 25632, 18151, 151814, 33022, 10, 32354, 2046, 58245, 2...
[ 0.1002197265625, 0.168212890625, 0.15966796875, 0.14697265625, 0.1988525390625, 0.0797119140625, 0.093994140625, 0.2213134765625, 0.1666259765625, 0.10009765625, 0.049530029296875, 0.07073974609375, 0.042938232421875, 0.0212860107421875, 0.0936279296875, 0.1004638671875, 0.0007324218...
embed
28732133_c0
28732133
fsharp
0
Title: F# types with units of measure vs System.Math Problem title: F# types with units of measure vs System.Math Tags: units-of-measurement, f%23, generics Problem: F# types with units of measure vs System.Math I defined my own unit of measure to represent radians: [<Measure>] type rad Then I realized that having a va...
F# types with units of measure vs System.Math F# types with units of measure vs System.Math units-of-measurement f%23 generics System.Math Measure Math.Abs F# types with units of measure vs System.Math I defined my own unit of measure to represent radians: Then I realized that having a value e.g. of type float<rad> I c...
[ -0.01416015625, 0.00183868408203125, 0.00982666015625, -0.0224609375, -0.004669189453125, -0.018798828125, 0.0093994140625, 0.01129150390625, 0.00714111328125, -0.0257568359375, -0.00885009765625, 0.031005859375, 0.00689697265625, -0.0177001953125, 0.01336669921875, -0.004638671875, ...
[ 563, 4904, 52895, 678, 25072, 111, 72350, 20209, 12353, 5, 199450, 4390, 37440, 56851, 1238, 3742, 189534, 1215, 11, 78804, 24988, 61924, 10002, 33636, 4567, 10133, 185171, 34292, 10644, 21917, 257, 5589, 831, 4527, 5941, 32354, 7290, 9821, ...
[ 0.1341552734375, 0.2178955078125, 0.216796875, 0.0546875, 0.2127685546875, 0.036773681640625, 0.2139892578125, 0.1031494140625, 0.15869140625, 0.026458740234375, 0.1883544921875, 0.1126708984375, 0.1234130859375, 0.0963134765625, 0.0877685546875, 0.0760498046875, 0.1614990234375, 0...
embed
20171531_c0
20171531
fsharp
0
Title: Can one define a function to tell whether an element was constructed from a given type constructor? Problem title: Can one define a function to tell whether an element was constructed from a given type constructor? Tags: types, f%23, discriminated-union Problem: Can one define a function to tell whether an eleme...
Can one define a function to tell whether an element was constructed from a given type constructor? Can one define a function to tell whether an element was constructed from a given type constructor? types f%23 discriminated-union a Can List.filter Can one define a function to tell whether an element was constructed fr...
[ -0.00885009765625, 0.0142822265625, 0.00439453125, 0.017578125, -0.0145263671875, -0.005706787109375, -0.0012359619140625, 0.0089111328125, 0.0034332275390625, -0.041748046875, 0.0279541015625, -0.0125732421875, -0.00323486328125, -0.011962890625, -0.01007080078125, 0.0108642578125, ...
[ 4171, 1632, 61924, 32354, 47, 14192, 36766, 12830, 509, 64549, 297, 1295, 34475, 10644, 748, 52895, 1238, 3742, 55970, 87046, 32036, 120337, 20697, 563, 4904, 384, 69941, 40368, 8966, 5303, 1543, 3444, 50065, 1810, 3542, 17368, 62, 23468, 1...
[ 0.0626220703125, 0.02923583984375, 0.196044921875, 0.2127685546875, 0.044281005859375, 0.1651611328125, 0.1268310546875, 0.1820068359375, 0.045654296875, 0.1795654296875, 0.07080078125, 0.1385498046875, 0.04034423828125, 0.1959228515625, 0.1234130859375, 0.15087890625, 0.0068359375, ...
embed
48557925_c0
48557925
fsharp
0
Title: Why this f# echo server can&#x27;t be connected by many clients? Problem title: Why this f# echo server can&#x27;t be connected by many clients? Tags: f%23 Problem: Why this f# echo server can't be connected by many clients? I write this echo server: let listener=new TcpListener(IPAddress.Parse("127.0.0.1"),2000...
Why this f# echo server can&#x27;t be connected by many clients? Why this f# echo server can&#x27;t be connected by many clients? f%23 Why TcpListener IPAddress.Parse TcpClient StreamReader StreamWriter sr.ReadLine sw.WriteLine client.Close listener:TcpListener listener.AcceptTcpClient client.GetStream sw.AutoFlush Asy...
[ 0.0013580322265625, 0.004150390625, -0.0064697265625, 0.0211181640625, 0.0003204345703125, -0.022216796875, -0.00823974609375, -0.005767822265625, 0.006683349609375, -0.024658203125, 0.00469970703125, -0.006072998046875, 0.022705078125, -0.00494384765625, 0.025146484375, -0.00213623046...
[ 44084, 903, 1238, 4904, 28, 3089, 10723, 831, 3768, 18, 162711, 390, 5941, 19802, 121422, 154663, 39060, 8021, 161007, 28636, 150, 115061, 31345, 56, 2783, 93232, 434, 23282, 59453, 44632, 232587, 38115, 5782, 12654, 15123, 147534, 40777, 235...
[ 0.099365234375, 0.039794921875, 0.0665283203125, 0.15673828125, 0.060302734375, 0.241943359375, 0.1748046875, 0.0751953125, 0.0384521484375, 0.1015625, 0.1805419921875, 0.0853271484375, 0.1904296875, 0.2130126953125, 0.076171875, 0.1414794921875, 0.109375, 0.016937255859375, 0.02...
embed
50322653_c1
50322653
fsharp
1
SepalWidth", "PetalLength", "PetalWidth")) pipeline.Add(new StochasticDualCoordinateAscentClassifier()) pipeline.Add(new PredictedLabelColumnOriginalValueConverter(PredictedLabelColumn = "PredictedLabel") ) let model = pipeline.Train<IrisData, IrisPrediction>() let prediction = model.Predict(IrisData(3.3, 1.6, 0.2, 5.1...
SepalWidth", "PetalLength", "PetalWidth")) pipeline.Add(new StochasticDualCoordinateAscentClassifier()) pipeline.Add(new PredictedLabelColumnOriginalValueConverter(PredictedLabelColumn = "PredictedLabel") ) let model = pipeline.Train<IrisData, IrisPrediction>() let prediction = model.Predict(IrisData(3.3, 1.6, 0.2, 5.1...
[ -0.0186767578125, 0.00110626220703125, -0.0223388671875, 0.023193359375, -0.0128173828125, -0.0037994384765625, -0.00927734375, -0.0022735595703125, 0.000255584716796875, -0.0172119140625, -0.001190185546875, 0.00994873046875, -0.00183868408203125, -0.0107421875, 0.0274658203125, -0.01...
[ 503, 5007, 1456, 532, 927, 18144, 1803, 449, 137158, 2256, 4028, 54936, 18343, 1436, 28692, 17726, 289, 10625, 43297, 19659, 16797, 140803, 85789, 7145, 14, 89829, 2729, 4063, 78457, 316, 242877, 50770, 814, 19273, 61669, 2633, 3299, 28542, ...
[ 0.12353515625, 0.255126953125, 0.020111083984375, 0.09979248046875, 0.05352783203125, 0.107666015625, 0.08990478515625, 0.050079345703125, 0.18212890625, 0.18603515625, 0.10302734375, 0.057037353515625, 0.057769775390625, 0.1007080078125, 0.08038330078125, 0.087158203125, 0.017059326...
embed
56100948_c0
56100948
fsharp
0
Title: F# SAFE template: How to add library to the server? Problem title: F# SAFE template: How to add library to the server? Tags: f%23, paket, f%23-giraffe Problem: F# SAFE template: How to add library to the server? I am trying to learn to use the SAFE framework and have installed the SAFE template . I want to add s...
F# SAFE template: How to add library to the server? F# SAFE template: How to add library to the server? f%23 paket f%23-giraffe SAFE How MySql.Data Server MySql F# SAFE template: How to add library to the server? I am trying to learn to use the SAFE framework and have installed the SAFE template . I want to add some co...
[ -0.0032196044921875, 0.0208740234375, 0.020263671875, 0.0242919921875, -0.00124359130859375, 0.021484375, -0.0020904541015625, -0.003631591796875, 0.0068359375, -0.037109375, 0.0137939453125, -0.01904296875, 0.007781982421875, 0.015869140625, 0.007537841796875, -0.0198974609375, -0.0...
[ 563, 4904, 5377, 30018, 110934, 11249, 15190, 35773, 1294, 47, 10723, 1238, 3742, 13360, 27495, 6920, 16670, 2646, 294, 99247, 137989, 22687, 170846, 18151, 78974, 57976, 44160, 32196, 75530, 91067, 37842, 210716, 88996, 31852, 959, 61924, 1541...
[ 0.1029052734375, 0.1802978515625, 0.155517578125, 0.243408203125, 0.2435302734375, 0.055084228515625, 0.1473388671875, 0.2117919921875, 0.16796875, 0.1007080078125, 0.1650390625, 0.06640625, 0.0266265869140625, 0.1236572265625, 0.0079345703125, 0.00579833984375, 0.1292724609375, 0....
embed
33315702_c0
33315702
fsharp
0
Title: F# Binary Arithmetic program.. type error Problem title: F# Binary Arithmetic program.. type error Tags: f%23 Problem: F# Binary Arithmetic program.. type error I'm programming binary arithmetic program using F#. I don't think my code was wrong but type error occurred. Please examine my code and tell me what is ...
F# Binary Arithmetic program.. type error F# Binary Arithmetic program.. type error f%23 Binary Arithmetic l1:bool l2:bool l2.Length l1.Head l2.Head l1.Tail l2.Tail F# Binary Arithmetic program.. type error I'm programming binary arithmetic program using F#. I don't think my code was wrong but type error occurred. Plea...
[ 0.00323486328125, 0.000865936279296875, 0.01019287109375, 0.02392578125, -0.00128173828125, 0.0159912109375, -0.0113525390625, -0.0027923583984375, -0.0028533935546875, 0.006103515625, -0.00531005859375, -0.0159912109375, -0.0098876953125, 0.010986328125, 0.00848388671875, -0.009643554...
[ 563, 4904, 54092, 1294, 1172, 8962, 282, 9523, 1528, 10644, 18499, 1238, 3949, 3742, 96, 82825, 142484, 304, 5442, 449, 13025, 712, 9874, 379, 5, 56037, 2394, 6635, 187, 17368, 18151, 44691, 74918, 2822, 30607, 160477, 759, 14192, 26008 ]
[ 0.150390625, 0.20703125, 0.20166015625, 0.115234375, 0.0289306640625, 0.1376953125, 0.064453125, 0.02423095703125, 0.1597900390625, 0.2279052734375, 0.207763671875, 0.09649658203125, 0.05145263671875, 0.1461181640625, 0.05352783203125, 0.044677734375, 0.1217041015625, 0.09967041015...
embed
40545282_c0
40545282
fsharp
0
Title: FsLex aborts with parse error on &#x27;{&#x27; Problem title: FsLex aborts with parse error on &#x27;{&#x27; Tags: lex, f%23, fslex, fsyacc Problem: FsLex aborts with parse error on '{' My Lexer is supposed to distinguish brackets and maintain a stack of opened brackets during lexing. For this I specified a help...
FsLex aborts with parse error on &#x27;{&#x27; FsLex aborts with parse error on &#x27;{&#x27; lex f%23 fslex fsyacc FsLex FsLex aborts with parse error on '{' My Lexer is supposed to distinguish brackets and maintain a stack of opened brackets during lexing. For this I specified a helper function in my fsl file like th...
[ -0.0009918212890625, -0.0000896453857421875, -0.006927490234375, -0.0133056640625, -0.018798828125, 0.01416015625, -0.001922607421875, 0.002532958984375, 0.00762939453125, 0.00762939453125, 0.013671875, 0.02880859375, -0.00830078125, -0.01611328125, 0.021484375, -0.00140380859375, -0...
[ 563, 7, 5267, 425, 64853, 678, 366, 184, 18499, 98, 54764, 3768, 75675, 1238, 3742, 74070, 19834, 10060, 24854, 99078, 56, 83, 134598, 157167, 1620, 27853, 76104, 177261, 142096, 20271, 214, 58735, 4358, 32354, 24861, 11435, 15411, 18831, 2...
[ 0.1541748046875, 0.10693359375, 0.20849609375, 0.208740234375, 0.23095703125, 0.058837890625, 0.150390625, 0.1181640625, 0.175537109375, 0.02435302734375, 0.019317626953125, 0.0806884765625, 0.173828125, 0.0941162109375, 0.031494140625, 0.1373291015625, 0.032470703125, 0.0101928710...
embed
18037528_c0
18037528
fsharp
0
Title: ServiceStack.OrmLite Autoincrement not working with F# Problem title: ServiceStack.OrmLite Autoincrement not working with F# Tags: ormlite-servicestack, f%23 Problem: ServiceStack.OrmLite Autoincrement not working with F# I am using OrmLite with F# on Mono. I have the following basic structure: type NestedTree()...
ServiceStack.OrmLite Autoincrement not working with F# ServiceStack.OrmLite Autoincrement not working with F# ormlite-servicestack f%23 ServiceStack.OrmLite Autoincrement NestedTree table_name String.Empty PrimaryKey parent_id Nullable dbFactory.Open conn.Insert ServiceStack.OrmLite Autoincrement not working with F# I ...
[ -0.0031280517578125, 0.0029754638671875, 0.017822265625, 0.00079345703125, -0.00830078125, -0.00176239013671875, 0.0177001953125, 0.0147705078125, -0.022705078125, -0.01806640625, 0.01806640625, -0.00482177734375, -0.01251220703125, 0.0189208984375, 0.0089111328125, -0.019287109375, ...
[ 12349, 42378, 2594, 19060, 39, 9506, 67, 4396, 158661, 959, 20697, 678, 563, 4904, 707, 27287, 22584, 590, 1238, 3742, 28701, 62731, 23180, 11627, 23351, 134332, 19012, 162429, 49129, 27786, 2661, 40041, 135518, 103264, 158, 33657, 3347, 7787...
[ 0.1143798828125, 0.1324462890625, 0.078857421875, 0.141845703125, 0.119140625, 0.186279296875, 0.1617431640625, 0.212646484375, 0.24365234375, 0.052001953125, 0.1285400390625, 0.112060546875, 0.150634765625, 0.1939697265625, 0.12646484375, 0.20751953125, 0.103271484375, 0.116943359...
embed
5399153_c0
5399153
fsharp
0
Title: C++ to F# smooth translation Problem title: C++ to F# smooth translation Tags: c%2B%2B, code-translation, f%23, immutability Problem: C++ to F# smooth translation Hey folks, I have the following piece of code from C++. for (int i=0; i < nObstacles; i++) { int x,y; bool bAlreadyExists; do { x = rand() % nGridWidt...
C++ to F# smooth translation C++ to F# smooth translation c%2B%2B code-translation f%23 immutability HasObstacle SetObstacle System.Random R.Next IsEmptyAt Obstacle C++ to F# smooth translation Hey folks, I have the following piece of code from C++. I can translate it to F# directly with no problem. Of course this prob...
[ 0, 0.006195068359375, 0.004119873046875, -0.030517578125, 0.00182342529296875, 0.0004787445068359375, 0.00634765625, -0.012939453125, 0.00634765625, -0.033447265625, 0.013427734375, 0.023193359375, -0.01043701171875, 0.00186920166015625, -0.000629425048828125, 0.0107421875, -0.007720...
[ 313, 37223, 47, 563, 4904, 156100, 153648, 501, 18151, 30145, 57860, 1238, 3742, 566, 14311, 41159, 20625, 46471, 590, 11030, 19943, 12353, 126525, 3815, 627, 81280, 2071, 134332, 939, 28848, 3545, 101469, 765, 25632, 63847, 1295, 831, 3900, ...
[ 0.06341552734375, 0.277099609375, 0.1341552734375, 0.1719970703125, 0.226806640625, 0.29296875, 0.2103271484375, 0.03289794921875, 0.1263427734375, 0.141357421875, 0.006439208984375, 0.088134765625, 0.0355224609375, 0.0633544921875, 0.150634765625, 0.036376953125, 0.06988525390625, ...
embed
30841536_c0
30841536
fsharp
0
Title: F# Discriminated Union - &quot;downcasting&quot; to subtype Problem title: F# Discriminated Union - &quot;downcasting&quot; to subtype Tags: f%23, discriminated-union Problem: F# Discriminated Union - "downcasting" to subtype I don't really know what the proper title for this question should be, but: I have a di...
F# Discriminated Union - &quot;downcasting&quot; to subtype F# Discriminated Union - &quot;downcasting&quot; to subtype f%23 discriminated-union Discriminated Union MyDiscriminatedUnion Foo Bar foo:Foo MyDiscriminatedUnion.Foo F# Discriminated Union - "downcasting" to subtype I don't really know what the proper title f...
[ 0.01123046875, 0.005859375, 0.0159912109375, -0.010009765625, -0.006866455078125, -0.015380859375, -0.0272216796875, 0.0262451171875, 0.010498046875, -0.0157470703125, 0.0177001953125, 0.00799560546875, 0.0089111328125, 0.02685546875, -0.007568359375, -0.030029296875, 0.018310546875,...
[ 563, 4904, 6206, 135421, 32528, 34695, 55741, 214, 47, 1614, 50986, 1238, 3742, 55970, 3674, 87046, 2646, 44456, 147547, 9572, 31, 3253, 5775, 27591, 44759, 69941, 136, 17164, 52895, 75935, 34292, 10644, 9969, 34759, 14192, 83, 111, 3444, 2...
[ 0.1282958984375, 0.2425537109375, 0.043487548828125, 0.2120361328125, 0.2386474609375, 0.1778564453125, 0.1661376953125, 0.054595947265625, 0.07659912109375, 0.1798095703125, 0.2398681640625, 0.06231689453125, 0.0745849609375, 0.2159423828125, 0.040802001953125, 0.132080078125, 0.126...
embed
33901837_c0
33901837
fsharp
0
Title: FAKE equivalent to Ant properties files? Problem title: FAKE equivalent to Ant properties files? Tags: f%23-fake, f%23 Problem: FAKE equivalent to Ant properties files? I'm converting a project from using NAnt to FAKE. The project is using a *.properties file to inform the main build.xml script of the locations ...
FAKE equivalent to Ant properties files? FAKE equivalent to Ant properties files? f%23-fake f%23 FAKE Ant FAKE equivalent to Ant properties files? I'm converting a project from using NAnt to FAKE. The project is using a *.properties file to inform the main build.xml script of the locations of some executables that the ...
[ 0.005889892578125, 0.01116943359375, 0.006988525390625, -0.0194091796875, 0.0068359375, -0.017333984375, -0.0007171630859375, -0.00848388671875, -0.0145263671875, 0.01104736328125, -0.013427734375, 0.015869140625, 0.0087890625, 0.01251220703125, -0.000873565673828125, 0.000394821166992...
[ 563, 119960, 183234, 47, 19897, 183871, 102158, 32, 1238, 167218, 27495, 1021, 350, 3949, 3742, 96760, 13452, 1295, 17368, 3076, 660, 661, 5, 36290, 56, 2449, 11435, 8180, 5201, 45367, 131492, 26499, 31913, 98927, 13566, 1221, 3871, 71924, ...
[ 0.19580078125, 0.2509765625, 0.2152099609375, 0.0853271484375, 0.2384033203125, 0.2474365234375, 0.20458984375, 0.0253753662109375, 0.05322265625, 0.031494140625, 0.06829833984375, 0.216552734375, 0.0987548828125, 0.0396728515625, 0.0787353515625, 0.0926513671875, 0.1160888671875, ...
embed
33828948_c0
33828948
fsharp
0
Title: Why is Type Annotation Required Here? Problem title: Why is Type Annotation Required Here? Tags: f%23 Problem: Why is Type Annotation Required Here? This function has the signature: (UnionCaseInfo -> bool) -> 'T option let private findCase<'T> f = match FSharpType.GetUnionCases typeof<'T> |> Array.filter f with ...
Why is Type Annotation Required Here? Why is Type Annotation Required Here? f%23 Why Type Annotation Required Here UnionCaseInfo FSharpType.GetUnionCases Array.filter Some FSharpValue.MakeUnion None CreateFromId case.Tag Lookup Why is Type Annotation Required Here? This function has the signature: (UnionCaseInfo -> boo...
[ 0.004302978515625, 0.0206298828125, -0.0023651123046875, 0.006805419921875, 0.01165771484375, -0.029541015625, -0.01171875, 0.0004634857177734375, -0.00162506103515625, -0.00579833984375, 0.02490234375, -0.0064697265625, -0.007171630859375, -0.012939453125, 0.019775390625, -0.003997802...
[ 44084, 83, 60457, 48143, 22062, 853, 3181, 2822, 11853, 3949, 3742, 32528, 441, 6991, 93147, 3467, 254, 196707, 147547, 20370, 120337, 50770, 438, 151313, 168407, 568, 71, 7225, 66448, 60818, 32354, 138256, 142484, 242, 618, 35829, 11782, 369...
[ 0.1676025390625, 0.0458984375, 0.287353515625, 0.23291015625, 0.1729736328125, 0.0726318359375, 0.1744384765625, 0.12109375, 0.196533203125, 0.001190185546875, 0.066162109375, 0.1600341796875, 0.11669921875, 0.14892578125, 0.1636962890625, 0.0711669921875, 0.0291290283203125, 0.192...
embed
16599565_c0
16599565
fsharp
0
Title: Why is this function saying &quot;Only simple variable patterns can be bound in &#x27;let rec&#x27; constructs&quot;? Problem title: Why is this function saying &quot;Only simple variable patterns can be bound in &#x27;let rec&#x27; constructs&quot;? Tags: f%23 Problem: Why is this function saying "Only simple v...
Why is this function saying &quot;Only simple variable patterns can be bound in &#x27;let rec&#x27; constructs&quot;? Why is this function saying &quot;Only simple variable patterns can be bound in &#x27;let rec&#x27; constructs&quot;? f%23 Why Only List.exists Why is this function saying "Only simple variable patterns...
[ -0.031494140625, 0.011474609375, 0.0191650390625, 0.018310546875, 0.0225830078125, 0.0224609375, 0.00030517578125, 0.010986328125, 0.0303955078125, -0.0234375, 0.013671875, -0.034912109375, -0.0042724609375, 0.0155029296875, 0.03662109375, 0.00958251953125, -0.00787353515625, -0.00...
[ 44084, 903, 32354, 54433, 20320, 538, 8781, 77336, 103510, 831, 186, 99091, 3768, 1974, 21954, 64549, 1238, 3742, 87293, 32036, 5, 54376, 23, 563, 4904, 31577, 15649, 5177, 603, 2967, 111378, 7413, 20809, 25632, 18151, 9969, 6743, 756, 3813...
[ 0.103271484375, 0.05035400390625, 0.1673583984375, 0.07427978515625, 0.0823974609375, 0.07275390625, 0.1866455078125, 0.2138671875, 0.1986083984375, 0.07586669921875, 0.0193634033203125, 0.210205078125, 0.05804443359375, 0.1998291015625, 0.190185546875, 0.187255859375, 0.024566650390...
embed
5213979_c1
5213979
fsharp
1
I get the following > <@ "\r\"\n" @> |> source |> stdout.WriteLine;; " " " val it : unit = () instead of the desired > <@ "\r\"\n" @> |> source |> stdout.WriteLine;; "\r\"\n" val it : unit = () If I only needed to consider Values encapsulating strings, that would be easy with something like let unescape s = ["\\","\\\...
I get the following > <@ "\r\"\n" @> |> source |> stdout.WriteLine;; " " " val it : unit = () instead of the desired > <@ "\r\"\n" @> |> source |> stdout.WriteLine;; "\r\"\n" val it : unit = () If I only needed to consider Values encapsulating strings, that would be easy with something like let unescape s = ["\\","\\\...
[ -0.009033203125, 0.0086669921875, -0.0009918212890625, 0.0074462890625, -0.0233154296875, 0.00787353515625, 0.024169921875, 0.00433349609375, 0.01361083984375, 0.03466796875, 0.00147247314453125, 0.0052490234375, -0.007049560546875, 0.0009765625, 0.03466796875, 0.0228271484375, 0.011...
[ 87, 2046, 70, 25632, 981, 42, 31344, 6138, 246, 1003, 1456, 18781, 93232, 3502, 442, 25072, 2203, 64457, 104851, 44841, 16916, 190060, 22, 15644, 77593, 79315, 23468, 2633, 773, 98224, 91, 32036, 42822, 16498, 7, 91693, 89700, 7103, 4332, ...
[ 0.05401611328125, 0.105224609375, 0.002410888671875, 0.1446533203125, 0.06524658203125, 0.0673828125, 0.2020263671875, 0.114013671875, 0.0135498046875, 0.142578125, 0.00323486328125, 0.076904296875, 0.1868896484375, 0.2056884765625, 0.163330078125, 0.22998046875, 0.044036865234375, ...
embed
24367749_c0
24367749
fsharp
0
Title: &quot;Run with F# Interactive...&quot; context menu option for .fsx files missing in 64 bit Windows Problem title: &quot;Run with F# Interactive...&quot; context menu option for .fsx files missing in 64 bit Windows Tags: f%23, f%23-interactive Problem: "Run with F# Interactive..." context menu option for .fsx fi...
&quot;Run with F# Interactive...&quot; context menu option for .fsx files missing in 64 bit Windows &quot;Run with F# Interactive...&quot; context menu option for .fsx files missing in 64 bit Windows f%23 f%23-interactive Run Interactive Windows "Run with F# Interactive..." context menu option for .fsx files missing in...
[ 0.0169677734375, -0.0025177001953125, 0.034912109375, 0.007293701171875, -0.009033203125, 0.01513671875, -0.015869140625, -0.01373291015625, -0.004241943359375, 0.0111083984375, 0.015869140625, 0.0185546875, 0.004241943359375, 0.0057373046875, 0.03564453125, 0.01153564453125, 0.02282...
[ 163321, 678, 563, 4904, 5337, 71232, 27, 43701, 8026, 35829, 5, 17447, 425, 102158, 132283, 7911, 4785, 3773, 1238, 27495, 10433, 28398, 222201, 56037, 373, 20600, 138, 83783, 125378, 133, 6626, 70885, 116491, 2789, 3137, 40368, 26499, 29822,...
[ 0.1678466796875, 0.1796875, 0.126220703125, 0.25927734375, 0.137939453125, 0.138427734375, 0.002410888671875, 0.259521484375, 0.2320556640625, 0.1578369140625, 0.0120849609375, 0.1925048828125, 0.203369140625, 0.1094970703125, 0.147216796875, 0.21826171875, 0.132568359375, 0.113281...
embed
20402098_c1
20402098
fsharp
1
the historical data. // process the historical data let rows = seq { for idx = 0 to 3 do yield (dataframe.GetRowKeyAt(idx), data.[[idx], [0..3]]) } // for debugging purposes here I have replaced data.Size.[0]-1 with 3 let simulation = stateMonad<Matrix, Matrix> { for row in rows do do! processFeed row } The exact same...
the historical data. // process the historical data let rows = seq { for idx = 0 to 3 do yield (dataframe.GetRowKeyAt(idx), data.[[idx], [0..3]]) } // for debugging purposes here I have replaced data.Size.[0]-1 with 3 let simulation = stateMonad<Matrix, Matrix> { for row in rows do do! processFeed row } The exact same...
[ 0.01177978515625, 0.025146484375, 0.01123046875, 0.03076171875, 0.0146484375, -0.01275634765625, 0.0286865234375, 0.02587890625, 0.011962890625, -0.03564453125, 0.00872802734375, 0.001708984375, -0.01507568359375, 0.0078125, -0.0006866455078125, 0.01300048828125, 0.006256103515625, ...
[ 70, 186768, 2053, 9433, 2633, 15555, 7, 40, 864, 100, 3447, 425, 2203, 757, 47, 138, 54, 11180, 19388, 10135, 160328, 126, 12724, 434, 162429, 28848, 532, 2389, 8, 978, 3688, 91995, 71, 127167, 5759, 40226, 11341, 46674, 712, 87427, 194...
[ 0.04547119140625, 0.2481689453125, 0.2017822265625, 0.1455078125, 0.1173095703125, 0.1917724609375, 0.01611328125, 0.0662841796875, 0.14013671875, 0.108642578125, 0.036407470703125, 0.0767822265625, 0.0237579345703125, 0.058013916015625, 0.030609130859375, 0.10736083984375, 0.0207519...
embed
31409092_c1
31409092
fsharp
1
valid test document i get the same error message. I expect there is something wrong with the xml schema but due to the fact that this is the first time i work with xml schemata i don't seem to find the mistake. Further testing shows that the exception is thrown on initialization of the XmlSerializer : XmlSerializer se...
valid test document i get the same error message. I expect there is something wrong with the xml schema but due to the fact that this is the first time i work with xml schemata i don't seem to find the mistake. Further testing shows that the exception is thrown on initialization of the XmlSerializer : XmlSerializer se...
[ 0.004486083984375, 0.0361328125, -0.0208740234375, -0.0390625, 0.01025390625, 0.0037689208984375, 0.007415771484375, 0.00506591796875, -0.004425048828125, -0.00921630859375, 0.0211181640625, 0.0031890869140625, 0.0125732421875, -0.0179443359375, 0.00958251953125, 0.0098876953125, 0.0...
[ 35604, 3034, 12937, 17, 5701, 18499, 26008, 41206, 44691, 131492, 61903, 4488, 102, 7413, 121742, 134234, 131527, 104250, 61475, 47691, 1193, 7237, 4233, 51626, 52825, 520, 3525, 50986, 121137, 135206, 48242, 5443, 63928, 3688, 73347, 25435, 11...
[ 0.1630859375, 0.1708984375, 0.1236572265625, 0.037445068359375, 0.10064697265625, 0.162841796875, 0.0712890625, 0.111083984375, 0.0770263671875, 0.2479248046875, 0.2064208984375, 0.03460693359375, 0.0743408203125, 0.000640869140625, 0.0977783203125, 0.0430908203125, 0.1778564453125, ...
embed
14650509_c0
14650509
fsharp
0
Title: Is there a set of C# data readonly generic collections / data structures? Problem title: Is there a set of C# data readonly generic collections / data structures? Tags: f%23, c%23, collections Problem: Is there a set of C# data readonly generic collections / data structures? I'm looking for a library of read-onl...
Is there a set of C# data readonly generic collections / data structures? Is there a set of C# data readonly generic collections / data structures? f%23 c%23 collections System.Collections.Generic Is there a set of C# data readonly generic collections / data structures? I'm looking for a library of read-only generic co...
[ 0.00933837890625, 0.033203125, -0.00823974609375, -0.0167236328125, -0.01055908203125, 0.005401611328125, 0.01458740234375, -0.0179443359375, 0.01422119140625, 0.01434326171875, -0.0037384033203125, -0.00579833984375, 0.00341796875, 0.001617431640625, -0.000827789306640625, -0.00683593...
[ 2071, 2685, 5423, 313, 4904, 2053, 12301, 191, 538, 189534, 42486, 7, 248, 45646, 1238, 3742, 12353, 78457, 8996, 5256, 135932, 12259, 10, 111, 16487, 35773, 191551, 29479, 65042, 17777, 11389, 39210, 146731, 72516, 57767, 563, 14012, 101758,...
[ 0.0302276611328125, 0.05706787109375, 0.12939453125, 0.1011962890625, 0.25537109375, 0.1568603515625, 0.1639404296875, 0.1341552734375, 0.0618896484375, 0.27001953125, 0.254150390625, 0.06292724609375, 0.013427734375, 0.22021484375, 0.05059814453125, 0.079345703125, 0.1087646484375, ...
embed
48813678_c0
48813678
fsharp
0
Title: How can I get the compiler to insert the correct type in this example? Problem title: How can I get the compiler to insert the correct type in this example? Tags: f%23 Problem: How can I get the compiler to insert the correct type in this example? this is somehow follow-up on this question How can I get rid of t...
How can I get the compiler to insert the correct type in this example? How can I get the compiler to insert the correct type in this example? f%23 How IModel IModelSimple ReInitWith this.value this.ReInitWith Type Expecting How can I get the compiler to insert the correct type in this example? this is somehow follow-up...
[ -0.02294921875, -0.004669189453125, -0.002227783203125, 0.0036163330078125, 0.00048065185546875, -0.008056640625, -0.022705078125, 0.00213623046875, 0.00830078125, -0.04541015625, 0.00323486328125, -0.0208740234375, 0.0086669921875, 0.01153564453125, 0.0283203125, -0.0024871826171875, ...
[ 2046, 9969, 34759, 183540, 26785, 10644, 27781, 11249, 831, 47, 1238, 3949, 3742, 87, 140290, 8859, 33209, 853, 4153, 217, 194583, 903, 27494, 4332, 60457, 60075, 24762, 31351, 54694, 959, 186, 4537, 52021, 58, 18499, 25632, 52895, 32354, 3...
[ 0.053009033203125, 0.1287841796875, 0.1435546875, 0.181396484375, 0.1502685546875, 0.2005615234375, 0.146728515625, 0.0213623046875, 0.023712158203125, 0.0208587646484375, 0.0625, 0.03857421875, 0.142333984375, 0.07958984375, 0.182861328125, 0.0263214111328125, 0.118896484375, 0.12...
embed
70055079_c0
70055079
fsharp
0
Title: Given a lexer implemented in FsLexYacc, how do I get all of the tokens? Problem title: Given a lexer implemented in FsLexYacc, how do I get all of the tokens? Tags: f%23, fsyacc, fslex Problem: Given a lexer implemented in FsLexYacc, how do I get all of the tokens? I have a lexer and parser implemented in FsLexY...
Given a lexer implemented in FsLexYacc, how do I get all of the tokens? Given a lexer implemented in FsLexYacc, how do I get all of the tokens? f%23 fsyacc fslex Given FsLexYacc net5.0 FsLexYacc.Runtime.fsx Domain.fs Parser.fs Lexer.fs System System.IO FSharp.Text FSharp.Text.Lexing Scripting LexBuffer FromString Lexer...
[ 0.01385498046875, -0.003631591796875, -0.01336669921875, 0.0274658203125, -0.00543212890625, 0.00714111328125, 0.01513671875, -0.0074462890625, -0.0037841796875, -0.03173828125, 0.025634765625, 0.03955078125, -0.02978515625, -0.0021820068359375, 0.0024871826171875, 0.005859375, -0.01...
[ 77878, 95, 34058, 29479, 563, 7, 5267, 425, 21566, 10060, 3642, 2046, 756, 111, 70, 47, 84694, 1238, 3742, 19834, 74070, 2043, 187461, 17447, 93702, 2392, 2189, 99078, 56, 17780, 3467, 254, 174379, 84654, 7235, 18234, 28090, 71713, 6448, ...
[ 0.048858642578125, 0.11083984375, 0.234619140625, 0.11669921875, 0.05352783203125, 0.0248870849609375, 0.1240234375, 0.10235595703125, 0.143798828125, 0.1380615234375, 0.045654296875, 0.1292724609375, 0.1494140625, 0.09686279296875, 0.02398681640625, 0.14697265625, 0.2347412109375, ...
embed
59242217_c1
59242217
fsharp
1
above to get this to work? PS : I am not looking for solutions where we know at compile time that oMap is of type Map<'k,'v> , e.g. : module Test2 = let gencount2<'k,'v when 'k : comparison> (gMap : Map<'k,'v>) : int = Map.count gMap let testsuccessStr : int = let gMap = [| ("k1", "v1"); ("k2", "v2") |] |> Map.ofArray...
above to get this to work? PS : I am not looking for solutions where we know at compile time that oMap is of type Map<'k,'v> , e.g. : module Test2 = let gencount2<'k,'v when 'k : comparison> (gMap : Map<'k,'v>) : int = Map.count gMap let testsuccessStr : int = let gMap = [| ("k1", "v1"); ("k2", "v2") |] |> Map.ofArray...
[ -0.00982666015625, -0.007110595703125, -0.003143310546875, -0.025390625, 0.00102996826171875, -0.01422119140625, -0.0223388671875, -0.00958251953125, 0.00994873046875, -0.022216796875, 0.0004749298095703125, -0.01190185546875, 0.0308837890625, 0.0036468505859375, 0.017822265625, -0.024...
[ 36917, 47, 2046, 903, 4488, 51347, 3714, 9969, 1340, 1733, 36, 166179, 10644, 42719, 92, 334, 88996, 8647, 304, 2633, 9226, 71013, 225490, 177, 23, 18, 706, 3034, 226534, 71713, 418, 5, 4390, 7614, 7092, 91693, 9030, 53855, 16655, 363, ...
[ 0.1319580078125, 0.11376953125, 0.1104736328125, 0.1666259765625, 0.1697998046875, 0.1307373046875, 0.06585693359375, 0.1014404296875, 0.0806884765625, 0.0755615234375, 0.1627197265625, 0.276123046875, 0.152099609375, 0.17333984375, 0.0823974609375, 0.1424560546875, 0.1566162109375, ...
embed
5557899_c0
5557899
fsharp
0
Title: F# -&gt; Implement IComparable for HashSet&lt;&#x27;a&gt; Problem title: F# -&gt; Implement IComparable for HashSet&lt;&#x27;a&gt; Tags: f%23 Problem: F# -> Implement IComparable for HashSet<'a> Is it possible to somehow implement IComparable for a HashSet<'a> ? The reason for this is that I have following recor...
F# -&gt; Implement IComparable for HashSet&lt;&#x27;a&gt; F# -&gt; Implement IComparable for HashSet&lt;&#x27;a&gt; f%23 Implement IComparable HashSet StructuralComparison Category Name SavePath Tags Tag Tag:string F# -> Implement IComparable for HashSet<'a> Is it possible to somehow implement IComparable for a HashSet...
[ -0.015869140625, 0.0244140625, 0.0172119140625, -0.016357421875, -0.0181884765625, 0.004608154296875, -0.0108642578125, -0.023193359375, 0.00101470947265625, -0.00958251953125, -0.00732421875, 0.036376953125, -0.006927490234375, 0.005035400390625, 0.00518798828125, 0.0081787109375, -...
[ 563, 4904, 5386, 153941, 87, 108161, 147, 2886, 100, 162087, 294, 126, 1277, 3768, 11, 74, 1238, 3742, 63667, 73317, 1686, 1681, 49057, 15757, 64944, 683, 10519, 12298, 4837, 91693, 25, 2071, 442, 7722, 47, 209303, 29479, 31635, 25632, 17...
[ 0.1292724609375, 0.203857421875, 0.0633544921875, 0.2130126953125, 0.2047119140625, 0.2069091796875, 0.203369140625, 0.2139892578125, 0.1103515625, 0.2401123046875, 0.1895751953125, 0.19384765625, 0.014739990234375, 0.07330322265625, 0.1514892578125, 0.014678955078125, 0.067016601562...
embed
77773832_c0
77773832
fsharp
0
Title: In F#, how do I map/lift a function where the result is curried? Problem title: In F#, how do I map/lift a function where the result is curried? Tags: currying, lifting, f%23 Problem: In F#, how do I map/lift a function where the result is curried? I have a struct constructor that takes a tuple, but I need to co...
In F#, how do I map/lift a function where the result is curried? In F#, how do I map/lift a function where the result is curried? currying lifting f%23 Example Array.map In F#, how do I map/lift a function where the result is curried? I have a struct constructor that takes a tuple, but I need to construct it with two a...
[ 0.0125732421875, 0.000392913818359375, 0.00360107421875, 0.00145721435546875, 0.005462646484375, 0.0081787109375, 0.01544189453125, -0.004180908203125, 0.0198974609375, -0.01953125, 0.0174560546875, 0.025146484375, -0.003997802734375, 0.00823974609375, -0.0021209716796875, -0.026245117...
[ 360, 563, 4904, 3642, 54, 87, 22288, 64, 104501, 32354, 7440, 16750, 83, 9709, 46572, 198555, 214, 177691, 1238, 3949, 3742, 89536, 8705, 69253, 53, 62346, 36716, 64549, 748, 51776, 370, 678, 6626, 10298, 4778, 43581, 29806, 51042, 2967, ...
[ 0.0615234375, 0.1494140625, 0.221435546875, 0.1004638671875, 0.0523681640625, 0.0433349609375, 0.227783203125, 0.0906982421875, 0.27734375, 0.216552734375, 0.07696533203125, 0.1824951171875, 0.09332275390625, 0.16064453125, 0.239501953125, 0.2462158203125, 0.1573486328125, 0.265869...
embed
40616826_c0
40616826
fsharp
0
Title: What does it mean to upcast a value to the _ wildcard? Problem title: What does it mean to upcast a value to the _ wildcard? Tags: f%23 Problem: What does it mean to upcast a value to the _ wildcard? What does it mean to implement a wildcard at the end of a case statement? Take the following syntax: match imp re...
What does it mean to upcast a value to the _ wildcard? What does it mean to upcast a value to the _ wildcard? f%23 this.InternalServerError InvalidOperationException What Success this.Ok IHttpActionResult PushController ApiController this.Post PushRequestDtr Failure ValidationFailure this.BadRequest IntegrationFailure ...
[ -0.0206298828125, 0.003082275390625, -0.00064849853515625, -0.00677490234375, -0.005462646484375, 0.009521484375, -0.005950927734375, -0.01348876953125, 0.0137939453125, 0.02294921875, 0.01068115234375, -0.0025787353515625, 0.0005645751953125, 0.00634765625, 0.00579833984375, -0.011169...
[ 4865, 29459, 47, 1257, 55741, 10, 34292, 56409, 38931, 14602, 442, 1238, 3949, 3742, 903, 44851, 193348, 18468, 31611, 7013, 156823, 63928, 144053, 73852, 7136, 114405, 175904, 603, 49411, 75616, 4448, 190355, 25447, 157027, 134701, 70, 29479, ...
[ 0.0404052734375, 0.13818359375, 0.1744384765625, 0.1571044921875, 0.2607421875, 0.023193359375, 0.226318359375, 0.1656494140625, 0.269287109375, 0.032196044921875, 0.021270751953125, 0.046142578125, 0.00042724609375, 0.1446533203125, 0.133056640625, 0.07025146484375, 0.07684326171875...
embed
14123231_c1
14123231
fsharp
1
Namespace of string (* name *) * bool (* singleton *) * CodeEntry list option (* properties *) * string option (* help *) | Property of string (* name *) * bool (* public *) * Parameter list option (* input *) * Parameter list option (* return values *) * string option (* help *) | Variable of string (* name *) * bool...
Namespace of string (* name *) * bool (* singleton *) * CodeEntry list option (* properties *) * string option (* help *) | Property of string (* name *) * bool (* public *) * Parameter list option (* input *) * Parameter list option (* return values *) * string option (* help *) | Variable of string (* name *) * bool...
[ 0.0289306640625, 0.000423431396484375, 0.022216796875, 0.03369140625, 0.0096435546875, 0.0172119140625, 0.00006031990051269531, -0.03173828125, -0.0011444091796875, -0.002593994140625, -0.013427734375, -0.0146484375, -0.006011962890625, -0.0029449462890625, 0, 0.0140380859375, 0.0034...
[ 2096, 109164, 111, 79315, 75402, 9351, 142484, 11001, 1507, 28864, 7768, 15123, 5303, 35829, 183871, 4358, 206984, 3835, 29089, 107730, 30646, 142424, 84572, 2886, 95486, 61475, 10644, 54092, 1294, 156823, 1290, 25737, 7108, 36939, 34292, 30022, ...
[ 0.1331787109375, 0.242919921875, 0.044647216796875, 0.251953125, 0.0684814453125, 0.1322021484375, 0.171875, 0.1175537109375, 0.201171875, 0.2108154296875, 0.072265625, 0.1517333984375, 0.1337890625, 0.17578125, 0.1446533203125, 0.1107177734375, 0.1878662109375, 0.1083984375, 0.0...
embed
795810_c0
795810
fsharp
0
Title: F# and ADO.NET to Connect To Access 2007 Problem title: F# and ADO.NET to Connect To Access 2007 Tags: ms-access, f%23, ado.net Problem: F# and ADO.NET to Connect To Access 2007 I am very new to F#, and I was trying to find the simplest way to connect to Access 2007 using System.Data.OleDb. I have done this with...
F# and ADO.NET to Connect To Access 2007 F# and ADO.NET to Connect To Access 2007 ms-access f%23 ado.net ADO.NET Connect Access System.Windows.Forms System.Data.OleDb System.Data ADOCon OleDbConnection DTab DataTable ADOCon.ConnectionString Provider Microsoft.Jet.OLEDB.4.0 Data Source Users F# and ADO.NET to Connect To...
[ 0.01220703125, 0.01153564453125, 0.005126953125, 0.0157470703125, 0.00164031982421875, 0.0086669921875, -0.00909423828125, 0.004974365234375, 0.0050048828125, -0.0263671875, 0.0234375, -0.0269775390625, -0.009521484375, -0.0106201171875, -0.00531005859375, -0.018310546875, -0.0089111...
[ 563, 4904, 136, 41388, 5, 17777, 47, 62448, 717, 40266, 2691, 68163, 113041, 1238, 3949, 3742, 1138, 1179, 12353, 43342, 102973, 137989, 670, 133, 397, 275, 11935, 31031, 235603, 161671, 618, 2886, 71713, 123089, 7244, 1375, 126, 71621, 394...
[ 0.164794921875, 0.23876953125, 0.1531982421875, 0.23779296875, 0.0272674560546875, 0.1912841796875, 0.1497802734375, 0.1907958984375, 0.1402587890625, 0.2352294921875, 0.20751953125, 0.04180908203125, 0.177490234375, 0.09527587890625, 0.02398681640625, 0.1212158203125, 0.174072265625...
embed
1617584_c0
1617584
fsharp
0
Title: Can I use F# Interactive to script or interactively debug/test my C# GUI projects? Problem title: Can I use F# Interactive to script or interactively debug/test my C# GUI projects? Tags: f%23, debugging, c%23 Problem: Can I use F# Interactive to script or interactively debug/test my C# GUI projects? I have seen ...
Can I use F# Interactive to script or interactively debug/test my C# GUI projects? Can I use F# Interactive to script or interactively debug/test my C# GUI projects? f%23 debugging c%23 Can Interactive GUI btShowNextNumber_Click Form1 Form InitializeComponent EventArgs label1.Text i.ToString Can I use F# Interactive to...
[ -0.003692626953125, -0.00897216796875, 0.01300048828125, 0.0019989013671875, 0.01116943359375, -0.00811767578125, 0.01080322265625, 0.01165771484375, 0.0087890625, -0.024169921875, 0.006866455078125, -0.004791259765625, -0.01220703125, 0.01031494140625, 0.0201416015625, -0.012023925781...
[ 4171, 87, 4527, 563, 4904, 5337, 71232, 47, 26499, 707, 212398, 8, 85779, 6954, 313, 195490, 77635, 1238, 3742, 978, 36659, 876, 18, 168660, 81280, 18444, 26278, 181671, 15236, 418, 360, 40705, 119066, 10770, 54137, 36943, 7614, 9405, 67967...
[ 0.115966796875, 0.016021728515625, 0.112060546875, 0.152099609375, 0.226318359375, 0.16552734375, 0.192138671875, 0.031890869140625, 0.1884765625, 0.003570556640625, 0.216552734375, 0.1168212890625, 0.1927490234375, 0.150146484375, 0.030059814453125, 0.19775390625, 0.12548828125, 0...
embed
33147964_c1
33147964
fsharp
1
Seq.map(fun dr -> let s = match dr?summary with | None -> "No Summary" | Some x -> x s) |> Seq.length test <@ r > 0 @> How can I modify my call to execReaderF to make it pass the parameter and run correctly? UPDATE : I tried it out with an integer parameter and it works fine. It seems the function may only support int...
Seq.map(fun dr -> let s = match dr?summary with | None -> "No Summary" | Some x -> x s) |> Seq.length test <@ r > 0 @> How can I modify my call to execReaderF to make it pass the parameter and run correctly? UPDATE : I tried it out with an integer parameter and it works fine. It seems the function may only support int...
[ -0.000728607177734375, 0.006744384765625, -0.01275634765625, 0.009765625, -0.0106201171875, -0.023681640625, 0.00732421875, -0.0263671875, -0.00116729736328125, -0.010986328125, 0.00653076171875, 0.01068115234375, -0.0033416748046875, -0.00653076171875, 0.0164794921875, -0.01806640625,...
[ 503, 864, 62346, 16498, 3568, 2633, 91, 14858, 112197, 1294, 678, 438, 5021, 131150, 31384, 1022, 23986, 927, 3034, 757, 11249, 2811, 40383, 11782, 47, 1119, 3240, 31345, 56, 919, 3249, 27875, 171859, 11675, 26785, 892, 1505, 43240, 5885, ...
[ 0.0965576171875, 0.1915283203125, 0.196044921875, 0.2000732421875, 0.1510009765625, 0.1339111328125, 0.079345703125, 0.1368408203125, 0.1519775390625, 0.097412109375, 0.009918212890625, 0.02392578125, 0.05242919921875, 0.1834716796875, 0.051544189453125, 0.015594482421875, 0.12902832...
embed
40049507_c0
40049507
fsharp
0
Title: How to check if an Exception is thrown by a method with xUnit and FsCheck in F# Problem title: How to check if an Exception is thrown by a method with xUnit and FsCheck in F# Tags: f%23, c%23, unit-testing, xunit, fscheck Problem: How to check if an Exception is thrown by a method with xUnit and FsCheck in F# I'...
How to check if an Exception is thrown by a method with xUnit and FsCheck in F# How to check if an Exception is thrown by a method with xUnit and FsCheck in F# f%23 c%23 unit-testing xunit fscheck InvalidOperationException FsCheck.Xunit.PropertyFailedException System.InvalidOperationException How Exception FsCheck Make...
[ -0.005340576171875, 0.01129150390625, -0.0087890625, -0.006500244140625, 0.0091552734375, 0.00250244140625, 0.016845703125, -0.01409912109375, -0.00127410888671875, 0.0252685546875, -0.004180908203125, 0.0152587890625, 0.01336669921875, 0.0081787109375, -0.01507568359375, -0.0159912109...
[ 12765, 2174, 5443, 63928, 104250, 19, 390, 55300, 678, 1022, 85600, 18, 136, 563, 7, 202567, 4904, 1238, 3742, 25072, 6954, 10438, 6773, 78292, 7013, 156823, 19279, 1542, 309, 17647, 12353, 11678, 3355, 29598, 79520, 31330, 206984, 69124, 3...
[ 0.1773681640625, 0.05865478515625, 0.1378173828125, 0.247314453125, 0.210205078125, 0.050048828125, 0.0394287109375, 0.1702880859375, 0.0626220703125, 0.1162109375, 0.1787109375, 0.03887939453125, 0.04071044921875, 0.1307373046875, 0.10101318359375, 0.257080078125, 0.1766357421875, ...
embed
43992039_c0
43992039
fsharp
0
Title: F# computation expression when is Combine called Problem title: F# computation expression when is Combine called Tags: f%23, monads Problem: F# computation expression when is Combine called I tried to implement this straight forward Maybe monad. So basically the whole expression evaluates to Nothing if one of th...
F# computation expression when is Combine called F# computation expression when is Combine called f%23 monads Combine Maybe Nothing Just MaybeBuilder this.Combine this.Zero this.Bind Bind MaybeMonad F# computation expression when is Combine called I tried to implement this straight forward Maybe monad. So basically the...
[ -0.0272216796875, 0.018798828125, 0.0238037109375, 0.0264892578125, 0.0036773681640625, 0.0303955078125, 0.0230712890625, 0.016357421875, -0.000576019287109375, 0.00506591796875, -0.0184326171875, 0.00799560546875, -0.002197265625, 0.0189208984375, 0.005615234375, -0.006103515625, -0...
[ 563, 4904, 181135, 125195, 3229, 83, 106935, 86, 35839, 1238, 3949, 3742, 2667, 712, 83425, 182747, 9563, 121137, 56, 903, 10770, 46187, 1511, 4036, 7250, 16666, 71, 46674, 37842, 29479, 80560, 40225, 28271, 151575, 47, 2174, 86991, 29954, ...
[ 0.1290283203125, 0.1871337890625, 0.16064453125, 0.20556640625, 0.093505859375, 0.087646484375, 0.297607421875, 0.257080078125, 0.1932373046875, 0.08837890625, 0.048675537109375, 0.1412353515625, 0.1224365234375, 0.1690673828125, 0.160400390625, 0.1796875, 0.04742431640625, 0.14013...
embed
48216745_c1
48216745
fsharp
1
Using( sequence'.GetEnumerator(), fun enum -> this.While( enum.MoveNext, this.Delay( fun () -> enum.Current |> body ) ) ) I am not certain whether this is a "Combine" issue or what and I do appreciate the help. The Helper functions are defined inside the MaybeBuilder type: let bind (f : 'T -> Internal<'U>) (Internal m)...
Using( sequence'.GetEnumerator(), fun enum -> this.While( enum.MoveNext, this.Delay( fun () -> enum.Current |> body ) ) ) I am not certain whether this is a "Combine" issue or what and I do appreciate the help. The Helper functions are defined inside the MaybeBuilder type: let bind (f : 'T -> Internal<'U>) (Internal m)...
[ -0.01153564453125, 0.027099609375, -0.002593994140625, 0.00004220008850097656, 0.0069580078125, 0.009033203125, 0.01080322265625, -0.01409912109375, -0.0074462890625, -0.038330078125, 0.00142669677734375, 0.045166015625, 0.004547119140625, 0.0019989013671875, 0.017333984375, -0.0006332...
[ 345, 6953, 40, 944, 3956, 724, 126, 2606, 56, 4597, 7477, 22, 316, 33079, 903, 979, 9083, 272, 81280, 4657, 5259, 474, 15724, 14361, 10770, 46187, 31089, 4358, 39527, 32354, 61924, 46132, 83425, 121137, 10644, 2633, 68557, 420, 618, 10674...
[ 0.06365966796875, 0.034027099609375, 0.0927734375, 0.14599609375, 0.1002197265625, 0.03961181640625, 0.08551025390625, 0.1827392578125, 0.2003173828125, 0.14990234375, 0.155517578125, 0.1029052734375, 0.2052001953125, 0.044891357421875, 0.1966552734375, 0.04046630859375, 0.0811157226...
embed
77152731_c1
77152731
fsharp
1
= MyClass() let choicexyz (ad:MyClass) = if ad.GetCounter()=0 then choice [x;y;z] >>= fun result -> ad.Print("in if block") ad.Increment() preturn result else z >>= fun result -> ad.Print("in else block") ad.Increment() preturn result let parserSepBy (ad:MyClass) = ad.Reset() sepBy (choicexyz ad) c let inputSepBy = "x...
= MyClass() let choicexyz (ad:MyClass) = if ad.GetCounter()=0 then choice [x;y;z] >>= fun result -> ad.Print("in if block") ad.Increment() preturn result else z >>= fun result -> ad.Print("in else block") ad.Increment() preturn result let parserSepBy (ad:MyClass) = ad.Reset() sepBy (choicexyz ad) c let inputSepBy = "x...
[ -0.0167236328125, 0.005706787109375, -0.009033203125, 0.040771484375, -0.0113525390625, 0.0166015625, 0.0263671875, 0.01385498046875, 0.0262451171875, -0.010498046875, -0.007781982421875, 0.0189208984375, 0.006988525390625, -0.0033111572265625, 0.017333984375, 0.007232666015625, -0.0...
[ 2203, 2646, 140803, 132, 2633, 44126, 50878, 169, 712, 12, 31852, 2174, 606, 724, 126, 108210, 56, 145407, 7068, 425, 74, 53, 7477, 16750, 112079, 18, 73, 46389, 4153, 7612, 674, 479, 987, 97, 5, 37076, 366, 2189, 4233, 254, 75358, 43...
[ 0.0985107421875, 0.19091796875, 0.276123046875, 0.061187744140625, 0.08056640625, 0.2232666015625, 0.116943359375, 0.158935546875, 0.13818359375, 0.04498291015625, 0.16064453125, 0.184814453125, 0.15576171875, 0.0823974609375, 0.12548828125, 0.201171875, 0.1175537109375, 0.19763183...
embed
55380540_c0
55380540
fsharp
0
Title: F# idiomatic conversion of async while loop accumulation Problem title: F# idiomatic conversion of async while loop accumulation Tags: f%23, idioms, azure-cosmosdb Problem: F# idiomatic conversion of async while loop accumulation What is the idiomatic F# way of handling an asynchronous while loop accumulation? I...
F# idiomatic conversion of async while loop accumulation F# idiomatic conversion of async while loop accumulation f%23 idioms azure-cosmosdb CosmosResultSetIterator HasMoreResults FetchNextSetAsync ResizeArray resultSetIterator.HasMoreResults resultSetIterator.FetchNextSetAsync Async.AwaitTask results.AddRange Seq.toAr...
[ 0.0026702880859375, -0.00174713134765625, -0.00083160400390625, -0.001495361328125, 0.002471923828125, -0.005706787109375, -0.0155029296875, 0.0035400390625, 0.004608154296875, -0.0194091796875, 0.03759765625, 0.01513671875, -0.008056640625, -0.01104736328125, 0.029296875, 0.0003547668...
[ 563, 4904, 49666, 9523, 142477, 10, 12654, 238, 12960, 40956, 183278, 1238, 3949, 3742, 13373, 295, 3408, 7840, 840, 48073, 170637, 7, 7136, 294, 126, 720, 4597, 20625, 122880, 10178, 92962, 81280, 62539, 7092, 16750, 6495, 634, 9874, 50339...
[ 0.144287109375, 0.2008056640625, 0.2119140625, 0.0977783203125, 0.157470703125, 0.0257568359375, 0.2005615234375, 0.032989501953125, 0.190185546875, 0.1845703125, 0.19482421875, 0.09161376953125, 0.007965087890625, 0.092041015625, 0.1380615234375, 0.041290283203125, 0.10748291015625,...
embed
35109354_c1
35109354
fsharp
1
. That in general means that subscribing and/or Disposing is not thread-safe. And that is what I didn't expected. If subscribing and disposing is not thread-safe, how can events in general safely be used? Sure events also can be used outside of threads, and a trigger don't spawn any function in parallel or on different...
. That in general means that subscribing and/or Disposing is not thread-safe. And that is what I didn't expected. If subscribing and disposing is not thread-safe, how can events in general safely be used? Sure events also can be used outside of threads, and a trigger don't spawn any function in parallel or on different...
[ -0.011474609375, 0.035400390625, 0.0006256103515625, -0.01068115234375, -0.00799560546875, -0.01611328125, 0.01544189453125, 0.0162353515625, 0.00616455078125, -0.0294189453125, -0.00012493133544921875, 0.02490234375, 0.00016498565673828125, 0.02001953125, 0.005218505859375, -0.0084838...
[ 4537, 26950, 1614, 61823, 449, 70958, 6953, 83, 959, 86997, 115840, 84751, 136, 91471, 3642, 47353, 46002, 11814, 831, 50782, 185553, 5623, 7710, 32354, 95103, 12921, 3638, 62, 12654, 238, 23882, 77007, 18151, 678, 27983, 36398, 26828, 67688,...
[ 0.1156005859375, 0.027587890625, 0.1470947265625, 0.1954345703125, 0.1070556640625, 0.1727294921875, 0.138671875, 0.01123046875, 0.07550048828125, 0.1846923828125, 0.1934814453125, 0.04840087890625, 0.016571044921875, 0.204345703125, 0.00921630859375, 0.214111328125, 0.10516357421875...
embed
26956814_c0
26956814
fsharp
0
Title: Using type from F# host via Ajax in FunScript JS code Problem title: Using type from F# host via Ajax in FunScript JS code Tags: funscript, f%23 Problem: Using type from F# host via Ajax in FunScript JS code How do I use types declared in my host project and served over Ajax in the generated FunScript code? For ...
Using type from F# host via Ajax in FunScript JS code Using type from F# host via Ajax in FunScript JS code funscript f%23 F# Using Ajax FunScript localhost:6543 System.Net.WebRequest.Create req.AsyncGetJSON MyType Globals.window.alert Async.StartImmediate Using type from F# host via Ajax in FunScript JS code How do I ...
[ -0.0157470703125, 0.0194091796875, -0.004608154296875, -0.00543212890625, 0.000499725341796875, -0.004486083984375, -0.005401611328125, -0.0047607421875, -0.0135498046875, -0.07666015625, 0.01165771484375, -0.0194091796875, -0.0045166015625, -0.013671875, 0.01953125, 0.006744384765625,...
[ 345, 10644, 1295, 563, 4904, 27980, 1829, 157715, 23, 28670, 147845, 64977, 18151, 6953, 7477, 32032, 1238, 3742, 4000, 40294, 12424, 11548, 12353, 24447, 75616, 63784, 456, 864, 12654, 724, 126, 1375, 58627, 2646, 196707, 13453, 24293, 2529,...
[ 0.102294921875, 0.26318359375, 0.0718994140625, 0.1495361328125, 0.1922607421875, 0.169677734375, 0.07177734375, 0.2412109375, 0.036865234375, 0.20556640625, 0.2335205078125, 0.1375732421875, 0.1107177734375, 0.014801025390625, 0.142578125, 0.172119140625, 0.04461669921875, 0.08935...
embed
7622544_c0
7622544
fsharp
0
Title: How to build FParsec for .NET Compact Framework? Problem title: How to build FParsec for .NET Compact Framework? Tags: f%23, compact-framework, fparsec Problem: How to build FParsec for .NET Compact Framework? I’m writing a small application based on FParsec. Today, I’m looking for an opportunity to make a versi...
How to build FParsec for .NET Compact Framework? How to build FParsec for .NET Compact Framework? f%23 compact-framework fparsec System.Text.DecoderFallbackException How FParsec NET Compact Framework System.Collections.Generic.HashSet CharStream How to build FParsec for .NET Compact Framework? I’m writing a small appli...
[ -0.0205078125, 0.0308837890625, 0.0184326171875, -0.00167083740234375, 0.00262451171875, 0.0038299560546875, 0.01708984375, -0.0225830078125, 0.0030059814453125, -0.00958251953125, -0.0016021728515625, -0.026123046875, 0.012939453125, 0.0169677734375, -0.0006256103515625, 0.00303649902...
[ 11249, 47, 45367, 563, 28636, 39797, 100, 17777, 191964, 202220, 1238, 3742, 94928, 160328, 18244, 2500, 12353, 174379, 120152, 51744, 5584, 12620, 19279, 63928, 78457, 8996, 135932, 6495, 294, 126, 21656, 115061, 32562, 19336, 38415, 35509, 54...
[ 0.07366943359375, 0.0203399658203125, 0.177490234375, 0.13916015625, 0.204345703125, 0.25341796875, 0.0888671875, 0.1573486328125, 0.22412109375, 0.1783447265625, 0.0892333984375, 0.0975341796875, 0.191162109375, 0.08099365234375, 0.026153564453125, 0.1285400390625, 0.11474609375, ...
embed
25829009_c0
25829009
fsharp
0
Title: Using F# match to extract two days out of the week Problem title: Using F# match to extract two days out of the week Tags: f%23-3.0, f%23 Problem: Using F# match to extract two days out of the week Learning to use F#, and I'm trying to get familiar with the match expression. I expect the below code to pick two c...
Using F# match to extract two days out of the week Using F# match to extract two days out of the week f%23-3.0 f%23 Using DayOfWeek.Sunday DayOfWeek.Monday DayOfWeek.Tuesday DayOfWeek.Wednesday DayOfWeek.Thursday DayOfWeek.Friday DayOfWeek.Saturday DateTime.Now curDate.DayOfWeek Using F# match to extract two days out o...
[ 0.0074462890625, -0.00836181640625, 0.0186767578125, 0.022705078125, -0.015380859375, 0.016845703125, -0.024658203125, 0.021240234375, 0.0057373046875, -0.00689697265625, 0.01507568359375, 0.042724609375, -0.005706787109375, 0.00189971923828125, 0.0076904296875, -0.0120849609375, -0....
[ 345, 563, 4904, 14858, 125663, 6626, 13312, 1810, 5895, 1238, 167218, 27495, 132265, 3949, 3742, 10013, 132887, 12137, 343, 66279, 5636, 46674, 12824, 33771, 16989, 25512, 70059, 137594, 9709, 86291, 97141, 114344, 4527, 16031, 125195, 41206, 3...
[ 0.0291595458984375, 0.1497802734375, 0.221923828125, 0.2398681640625, 0.187744140625, 0.1578369140625, 0.1551513671875, 0.1292724609375, 0.1859130859375, 0.09912109375, 0.03759765625, 0.10491943359375, 0.1815185546875, 0.043670654296875, 0.1314697265625, 0.161865234375, 0.20861816406...
embed
78202439_c0
78202439
fsharp
0
Title: F# - Stack interface? Problem title: F# - Stack interface? Tags: f%23 Problem: F# - Stack interface? How can I write the interface for a type of immutable stacks in F#? Here is my attempt. [<Interface>] type stack<'a> = abstract member push : 'a -> stack<'a> abstract member peek : unit -> 'a option abstract memb...
F# - Stack interface? F# - Stack interface? f%23 type Stack Interface push_to_stack t.push Error input.fsx Static Further F# - Stack interface? How can I write the interface for a type of immutable stacks in F#? Here is my attempt. This doesn't work. It appears the problem is that the codomain of the push function is u...
[ -0.006622314453125, 0.0079345703125, 0.00494384765625, 0.00634765625, -0.0111083984375, 0.003662109375, -0.01025390625, 0.0113525390625, 0.00286865234375, -0.00933837890625, -0.0023956298828125, 0.018798828125, -0.0230712890625, -0.007232666015625, -0.00180816650390625, 0.0120849609375...
[ 563, 4904, 20, 6512, 2594, 101758, 32, 1238, 3742, 10644, 220237, 25944, 188, 590, 808, 7332, 127, 212059, 107730, 17447, 425, 71465, 11249, 33022, 100, 566, 561, 22819, 177261, 7, 81887, 22027, 18, 4488, 135179, 2967, 552, 56206, 73, 323...
[ 0.1380615234375, 0.21484375, 0.01416015625, 0.1673583984375, 0.1749267578125, 0.25341796875, 0.010498046875, 0.076416015625, 0.0836181640625, 0.13671875, 0.2230224609375, 0.22509765625, 0.1634521484375, 0.173828125, 0.054107666015625, 0.1524658203125, 0.1280517578125, 0.20263671875...
embed
6186230_c0
6186230
fsharp
0
Title: Recursive grammars in FParsec Problem title: Recursive grammars in FParsec Tags: fparsec, f%23, parsec, parsing Problem: Recursive grammars in FParsec I've decided to check out FParsec, and tried to write a parser for λ expressions. As it turns out, eagerness makes recursive parsing difficult. How can I solve th...
Recursive grammars in FParsec Recursive grammars in FParsec fparsec f%23 parsec parsing Recursive FParsec Variable Application Lambda Set.singleton Set.empty tuple2 pipe2 List.foldBack Recursive grammars in FParsec I've decided to check out FParsec, and tried to write a parser for λ expressions. As it turns out, eagern...
[ 0.001739501953125, 0.004913330078125, -0.0028228759765625, 0.02392578125, -0.002349853515625, 0.016357421875, 0.0186767578125, 0.0123291015625, 0.00811767578125, -0.0234375, 0.0162353515625, 0.00836181640625, 0.00592041015625, -0.000820159912109375, 0.01483154296875, 0.01019287109375, ...
[ 853, 48650, 5844, 122092, 21816, 23, 563, 28636, 39797, 1238, 2500, 3949, 3742, 366, 84572, 104921, 122930, 85, 19943, 6953, 1507, 33548, 370, 8705, 304, 137158, 32036, 42822, 152470, 68872, 12765, 37842, 33022, 2189, 111147, 125195, 28, 3373...
[ 0.09149169921875, 0.2308349609375, 0.13427734375, 0.1864013671875, 0.101806640625, 0.048919677734375, 0.1201171875, 0.1435546875, 0.2244873046875, 0.09417724609375, 0.1258544921875, 0.07177734375, 0.157958984375, 0.1649169921875, 0.1060791015625, 0.138427734375, 0.1021728515625, 0....
embed
419521_c0
419521
fsharp
0
Title: F# Units of measure - &#x27;lifting&#x27; values to float&lt;something&gt; Problem title: F# Units of measure - &#x27;lifting&#x27; values to float&lt;something&gt; Tags: f%23, units-of-measurement Problem: F# Units of measure - 'lifting' values to float When importing numbers from a csv file, I need to convert ...
F# Units of measure - &#x27;lifting&#x27; values to float&lt;something&gt; F# Units of measure - &#x27;lifting&#x27; values to float&lt;something&gt; f%23 units-of-measurement Units List.map Measure v:float km.lift F# Units of measure - 'lifting' values to float When importing numbers from a csv file, I need to convert...
[ -0.0004863739013671875, 0.01513671875, 0.007568359375, -0.0196533203125, 0.004669189453125, -0.03857421875, 0.0089111328125, -0.0123291015625, 0.026123046875, -0.017822265625, -0.0177001953125, -0.01202392578125, 0.00848388671875, -0.002166748046875, 0.0015716552734375, -0.002624511718...
[ 563, 4904, 46640, 7, 111, 72350, 3768, 177691, 142424, 47, 21917, 257, 64113, 5386, 1238, 3742, 25072, 4390, 37440, 56851, 32036, 62346, 1215, 11, 81, 52347, 1785, 104501, 24927, 214, 101935, 1295, 10, 20763, 334, 11435, 3871, 96760, 9821, ...
[ 0.130859375, 0.2274169921875, 0.239990234375, 0.05657958984375, 0.1552734375, 0.2100830078125, 0.0831298828125, 0.218505859375, 0.1671142578125, 0.095703125, 0.227783203125, 0.1451416015625, 0.04071044921875, 0.03570556640625, 0.064208984375, 0.04876708984375, 0.24365234375, 0.0617...
embed
58368624_c0
58368624
fsharp
0
Title: How to access resources in dotnet core and fetch its URI Problem title: How to access resources in dotnet core and fetch its URI Tags: .net-core, c%23, embedded-resource, f%23, uri Problem: How to access resources in dotnet core and fetch its URI In a class library of C# or F# I am trying to access certain files...
How to access resources in dotnet core and fetch its URI How to access resources in dotnet core and fetch its URI .net-core c%23 embedded-resource f%23 uri How URI EmbeddedResources How to access resources in dotnet core and fetch its URI In a class library of C# or F# I am trying to access certain files. I intend to p...
[ -0.012939453125, 0.0087890625, 0.001617431640625, 0.0203857421875, -0.0038604736328125, -0.03955078125, 0.0162353515625, 0.0166015625, 0.00732421875, -0.029541015625, 0.034912109375, 0.00445556640625, 0.003204345703125, 0.02294921875, 0.005767822265625, 0.0009307861328125, -0.0031585...
[ 11249, 47, 17203, 65514, 23, 20633, 1179, 56458, 136, 7647, 206, 6863, 46492, 5, 30854, 501, 3742, 55720, 69819, 107, 60427, 1238, 39074, 2775, 372, 4332, 18507, 35773, 313, 4904, 707, 563, 31577, 24233, 102158, 150661, 43824, 25842, 678, ...
[ 0.088134765625, 0.0231475830078125, 0.19921875, 0.2666015625, 0.09710693359375, 0.1785888671875, 0.202392578125, 0.229736328125, 0.050323486328125, 0.17138671875, 0.08807373046875, 0.098388671875, 0.2481689453125, 0.04345703125, 0.203125, 0.01312255859375, 0.08026123046875, 0.20764...
embed
5771235_c0
5771235
fsharp
0
Title: Break a statement (expression) into multiple lines: how to indent Problem title: Break a statement (expression) into multiple lines: how to indent Tags: f%23, indentation Problem: Break a statement (expression) into multiple lines: how to indent I found it's very hard to search for the simple indentation guide i...
Break a statement (expression) into multiple lines: how to indent Break a statement (expression) into multiple lines: how to indent f%23 indentation Break List.iter Break a statement (expression) into multiple lines: how to indent I found it's very hard to search for the simple indentation guide in F#. Basically, I am ...
[ 0.00193023681640625, -0.0302734375, 0.006988525390625, 0.03271484375, -0.00921630859375, -0.0086669921875, 0.0302734375, -0.01397705078125, 0.0106201171875, -0.01300048828125, -0.0125732421875, -0.0023040771484375, -0.01483154296875, 0.007781982421875, 0.00360107421875, 0.0041809082031...
[ 131904, 10, 63805, 204629, 3934, 48716, 124519, 3642, 47, 18597, 18, 1238, 3742, 22062, 32036, 16840, 8781, 17997, 23, 563, 4904, 149016, 79986, 100, 2256, 35011, 65421, 54529, 33022, 18151, 58868, 116987, 1632, 237, 1650, 43240, 84751, 5701,...
[ 0.1998291015625, 0.017120361328125, 0.2335205078125, 0.1878662109375, 0.140625, 0.2073974609375, 0.185791015625, 0.06610107421875, 0.041839599609375, 0.1986083984375, 0.1385498046875, 0.06329345703125, 0.127685546875, 0.1273193359375, 0.12255859375, 0.1239013671875, 0.04290771484375,...
embed
33174768_c0
33174768
fsharp
0
Title: session state in suave Problem title: session state in suave Tags: f%23, suave Problem: session state in suave I want to use session state in my Suave project. I enable the session state for the "/home" url, and following this, I check that this state exists: #r @"packages\Suave.0.32.0\lib\net40\Suave.dll" open ...
session state in suave session state in suave f%23 suave Suave.0.32.0 net40 Suave.dll Suave Suave.Http.Successful OK-result Suave.Web Suave.Http Suave.State.CookieStateStore Suave.Http.Applicatives Suave.Types HttpContext.state Some None Suave.Http.RequestErrors.BAD_REQUEST Session Found session state in suave I want t...
[ 0.0030670166015625, 0.005157470703125, 0.0076904296875, 0.001434326171875, 0.00341796875, 0.0242919921875, 0.0035858154296875, 0.00982666015625, -0.0123291015625, -0.0228271484375, 0.01385498046875, 0.0228271484375, -0.00579833984375, -0.00811767578125, -0.00628662109375, -0.0025024414...
[ 56002, 11341, 23, 109829, 1238, 3949, 3742, 45384, 272, 170179, 73011, 2043, 2839, 1181, 3062, 238, 26531, 14315, 7136, 30474, 135206, 146318, 165248, 39179, 11048, 196707, 22829, 61340, 31384, 438, 75616, 18468, 8031, 397, 11766, 53966, 148735...
[ 0.2420654296875, 0.19775390625, 0.07086181640625, 0.30078125, 0.044708251953125, 0.027313232421875, 0.118408203125, 0.2410888671875, 0.254638671875, 0.0294952392578125, 0.0985107421875, 0.08648681640625, 0.121826171875, 0.133056640625, 0.0638427734375, 0.06298828125, 0.0955810546875,...
embed
18140227_c0
18140227
fsharp
0
Title: Further optimizing Number to Roman Numeral function in F# Problem title: Further optimizing Number to Roman Numeral function in F# Tags: f%23, functional-programming Problem: Further optimizing Number to Roman Numeral function in F# I'm new to F# and I'm curious if this can still be optimized further. I am not p...
Further optimizing Number to Roman Numeral function in F# Further optimizing Number to Roman Numeral function in F# f%23 functional-programming Further Number Roman Numeral RomanDigit Seq.find Seq.toList Seq.concat Further optimizing Number to Roman Numeral function in F# I'm new to F# and I'm curious if this can still...
[ -0.00927734375, -0.00494384765625, 0.007232666015625, 0.0101318359375, -0.01239013671875, -0.00885009765625, -0.0086669921875, 0.001678466796875, -0.005462646484375, 0.00433349609375, 0.0028076171875, -0.053466796875, -0.0037841796875, -0.0004444122314453125, -0.013671875, -0.017456054...
[ 27766, 9319, 15572, 84382, 103332, 47, 12610, 93511, 289, 32354, 23, 563, 4904, 1238, 3949, 3742, 123309, 28966, 14055, 15769, 503, 864, 111607, 188, 154663, 2271, 4460, 3525, 193844, 903, 831, 7464, 29367, 53333, 106480, 272, 16940, 26785, ...
[ 0.118408203125, 0.1644287109375, 0.18115234375, 0.065673828125, 0.22705078125, 0.1826171875, 0.258544921875, 0.1898193359375, 0.148681640625, 0.1527099609375, 0.048370361328125, 0.148681640625, 0.209716796875, 0.095458984375, 0.0153045654296875, 0.12646484375, 0.142822265625, 0.104...
embed
23349225_c0
23349225
fsharp
0
Title: How to return a query from an anonymous function and pass it to a forward pipe Problem title: How to return a query from an anonymous function and pass it to a forward pipe Tags: f%23 Problem: How to return a query from an anonymous function and pass it to a forward pipe I have a query that is then forward piped...
How to return a query from an anonymous function and pass it to a forward pipe How to return a query from an anonymous function and pass it to a forward pipe f%23 an How db.Uploads row.Id File.Delete q.FilePath How to return a query from an anonymous function and pass it to a forward pipe I have a query that is then fo...
[ 0.012939453125, 0.037109375, -0.0115966796875, 0.00653076171875, -0.017822265625, -0.02197265625, 0.020751953125, -0.0177001953125, -0.00982666015625, -0.04833984375, 0.0034027099609375, 0.021240234375, 0.032958984375, 0.021484375, 0.00128173828125, 0.00225830078125, -0.0027465820312...
[ 11249, 47, 30646, 41, 1294, 1295, 52184, 10821, 32354, 136, 27875, 10, 40225, 137158, 442, 1238, 3949, 3742, 40041, 53234, 63033, 15555, 71, 42724, 4657, 46485, 8096, 174350, 683, 10519, 2806, 1884, 121876, 7068, 11737, 7722, 63134, 163846, ...
[ 0.10247802734375, 0.1182861328125, 0.2340087890625, 0.1568603515625, 0.1578369140625, 0.1107177734375, 0.2064208984375, 0.1673583984375, 0.18701171875, 0.032867431640625, 0.1395263671875, 0.058929443359375, 0.191650390625, 0.2198486328125, 0.01971435546875, 0.0347900390625, 0.0067443...
embed
64928646_c0
64928646
fsharp
0
Title: FSharp.Compiler.Service compile to dll errors Problem title: FSharp.Compiler.Service compile to dll errors Tags: f%23, mutation-testing, dll, .net Problem: FSharp.Compiler.Service compile to dll errors I am currently working on a project to implementing mutation-testing for F#. To access the FCS process I am usi...
FSharp.Compiler.Service compile to dll errors FSharp.Compiler.Service compile to dll errors f%23 mutation-testing dll .net FSharp.Compiler.Service FSharp.Compiler.Service compile to dll errors I am currently working on a project to implementing mutation-testing for F#. To access the FCS process I am using the FSharp.Co...
[ -0.013427734375, 0.0167236328125, -0.007354736328125, -0.015869140625, -0.01031494140625, 0.0040283203125, -0.02392578125, -0.00689697265625, -0.031005859375, -0.00439453125, -0.0274658203125, 0.02001953125, 0.016357421875, 0.024658203125, 0.033447265625, -0.0186767578125, 0.00205993...
[ 93774, 3467, 254, 108161, 34759, 121979, 9969, 1340, 47, 81717, 18499, 1238, 3949, 3742, 199334, 6954, 1179, 20697, 13452, 29479, 563, 4904, 17203, 15161, 294, 9433, 17368, 5, 98169, 63134, 98352, 375, 5974, 391, 23708, 48963, 1528, 91067, ...
[ 0.09124755859375, 0.1976318359375, 0.2083740234375, 0.1370849609375, 0.1812744140625, 0.2064208984375, 0.159912109375, 0.13525390625, 0.1226806640625, 0.1947021484375, 0.205810546875, 0.03515625, 0.010406494140625, 0.142333984375, 0.1934814453125, 0.1314697265625, 0.0989990234375, ...
embed
15246871_c0
15246871
fsharp
0
Title: Using F# with ASP.NET Webforms on Mono Problem title: Using F# with ASP.NET Webforms on Mono Tags: mono, f%23, webforms, asp.net Problem: Using F# with ASP.NET Webforms on Mono I'm starting a uni class in which we have to make a web application using webforms (sadly we are not allowed to use MVC), but we are all...
Using F# with ASP.NET Webforms on Mono Using F# with ASP.NET Webforms on Mono mono f%23 webforms asp.net Using ASP.NET Webforms Mono Using F# with ASP.NET Webforms on Mono I'm starting a uni class in which we have to make a web application using webforms (sadly we are not allowed to use MVC), but we are allowed to use ...
[ 0.004150390625, 0.0230712890625, -0.015625, -0.0213623046875, 0.0042724609375, 0.0181884765625, -0.01190185546875, -0.0064697265625, -0.0218505859375, -0.047119140625, 0.00909423828125, -0.021728515625, 0.0111083984375, 0.0150146484375, 0.004974365234375, -0.01055908203125, -0.024047...
[ 345, 563, 4904, 678, 147153, 17777, 4002, 5037, 98, 77879, 22460, 1238, 3949, 3742, 1467, 237, 254, 1179, 6953, 72134, 19844, 18507, 3249, 38415, 17368, 959, 107003, 4527, 56349, 75034, 707, 3444, 47, 33022, 18151, 50155, 102158, 168698, 19...
[ 0.0794677734375, 0.170166015625, 0.2744140625, 0.1112060546875, 0.1590576171875, 0.1376953125, 0.109375, 0.27099609375, 0.040374755859375, 0.2430419921875, 0.201171875, 0.0921630859375, 0.012115478515625, 0.0794677734375, 0.1221923828125, 0.011871337890625, 0.08587646484375, 0.0973...
embed
13567081_c0
13567081
fsharp
0
Title: Creating a list with multiple units of measurements of floats in F# Problem title: Creating a list with multiple units of measurements of floats in F# Tags: f%23, list, units-of-measurement Problem: Creating a list with multiple units of measurements of floats in F# So, I've tried to get around this in various w...
Creating a list with multiple units of measurements of floats in F# Creating a list with multiple units of measurements of floats in F# f%23 list units-of-measurement Creating Creating a list with multiple units of measurements of floats in F# So, I've tried to get around this in various ways, but I just can't make thi...
[ 0.01531982421875, 0.00909423828125, -0.0091552734375, -0.01397705078125, 0.00174713134765625, -0.025634765625, -0.000904083251953125, -0.006866455078125, 0.022705078125, 0.0081787109375, -0.01153564453125, -0.0157470703125, 0.01165771484375, -0.0062255859375, -0.01708984375, 0.01202392...
[ 56781, 5303, 678, 48716, 25072, 72350, 9035, 21917, 9821, 563, 4904, 1238, 3742, 4390, 37440, 56851, 37842, 10932, 903, 831, 18, 4488, 3917, 3249, 10, 70541, 142424, 285, 38543, 111, 674, 35509, 191607, 12921, 52895, 53418, 23, 5701, 18347,...
[ 0.1416015625, 0.230712890625, 0.0709228515625, 0.181640625, 0.20166015625, 0.193359375, 0.05340576171875, 0.2080078125, 0.115234375, 0.12890625, 0.1800537109375, 0.07403564453125, 0.11279296875, 0.1102294921875, 0.0965576171875, 0.0992431640625, 0.009124755859375, 0.087646484375, ...
embed
15169754_c0
15169754
fsharp
0
Title: Self-reference in F# sequence expression Problem title: Self-reference in F# sequence expression Tags: f%23, sequence Problem: Self-reference in F# sequence expression Is there a way to have a self-reference in F# sequence expression? For example: [for i in 1..n do if _f(i)_not_in_this_list_ do yield f(i)] which...
Self-reference in F# sequence expression Self-reference in F# sequence expression f%23 sequence Self-reference _not_in_this_list_ _i_not_in_this_list_ i..i..n Array.create Self-reference in F# sequence expression Is there a way to have a self-reference in F# sequence expression? For example: which prevents inserting du...
[ 0.002227783203125, 0.0179443359375, 0.0159912109375, 0.012451171875, -0.0015716552734375, -0.031494140625, 0.0072021484375, 0.01495361328125, -0.002685546875, -0.017822265625, -0.006378173828125, 0.04248046875, 0.00138092041015625, 0.025634765625, 0.0264892578125, -0.002288818359375, ...
[ 55347, 9, 239879, 23, 563, 4904, 40, 944, 3956, 125195, 1238, 3949, 3742, 10869, 73, 100231, 6562, 14, 69253, 53, 7612, 2071, 2685, 10, 3917, 47, 765, 15970, 56282, 183540, 171763, 80854, 1884, 3714, 10941, 903, 8108, 59911, 132, 4552, ...
[ 0.245849609375, 0.1048583984375, 0.31640625, 0.0789794921875, 0.1527099609375, 0.231689453125, 0.088134765625, 0.133544921875, 0.05560302734375, 0.251953125, 0.12060546875, 0.05389404296875, 0.167236328125, 0.1629638671875, 0.103759765625, 0.1322021484375, 0.1763916015625, 0.086120...
embed
4729653_c1
4729653
fsharp
1
Width = left; cxRightWidth = right; cyTopHeight = top; cyBottomHeigh = bottom } (*Is there any other way to do this?*) end [<DllImport("dwmapi.dll")>] extend int DwmExtendFrameIntoClientArea(IntPtr hWnd, (*I need help here*)) The API call from Form_Load event: let margins = new MARGINS(0, 100, 0, 0); (*Is there any oth...
Width = left; cxRightWidth = right; cyTopHeight = top; cyBottomHeigh = bottom } (*Is there any other way to do this?*) end [<DllImport("dwmapi.dll")>] extend int DwmExtendFrameIntoClientArea(IntPtr hWnd, (*I need help here*)) The API call from Form_Load event: let margins = new MARGINS(0, 100, 0, 0); (*Is there any oth...
[ 0.01361083984375, 0.03369140625, 0.0137939453125, 0.01806640625, -0.00579833984375, -0.01904296875, 0.01507568359375, 0.004638671875, -0.00180816650390625, -0.041015625, 0.01513671875, -0.017333984375, 0.000659942626953125, -0.007354736328125, -0.00653076171875, -0.01708984375, 0.023...
[ 58302, 927, 2203, 25737, 74, 501, 425, 22553, 532, 7108, 19932, 77888, 13025, 2663, 137925, 5928, 6958, 103136, 3789, 3917, 903, 3564, 1181, 61637, 6982, 38164, 192, 1434, 65042, 23, 18, 114458, 39, 510, 108386, 282, 188, 150, 2517, 1283,...
[ 0.178955078125, 0.1473388671875, 0.0748291015625, 0.200439453125, 0.029632568359375, 0.007568359375, 0.1104736328125, 0.1217041015625, 0.084228515625, 0.10693359375, 0.06011962890625, 0.1368408203125, 0.1044921875, 0.099853515625, 0.051605224609375, 0.040771484375, 0.1683349609375, ...
embed
58838212_c1
58838212
fsharp
1
CloudStorageAccount.Parse(connectionString) let tableClient = storageAccount.CreateCloudTableClient() let table = tableClient.GetTableReference(tableName) let searchTerm = "@http://www.microsoft.com" let query = TableQuery<Record>().Where(TableQuery.GenerateFilterCondition("uri",QueryComparisons.Equal,searchTerm)) let...
CloudStorageAccount.Parse(connectionString) let tableClient = storageAccount.CreateCloudTableClient() let table = tableClient.GetTableReference(tableName) let searchTerm = "@http://www.microsoft.com" let query = TableQuery<Record>().Where(TableQuery.GenerateFilterCondition("uri",QueryComparisons.Equal,searchTerm)) let...
[ 0.006011962890625, 0.0274658203125, -0.0120849609375, 0.0299072265625, -0.01806640625, -0.00897216796875, 0.02001953125, -0.0003528594970703125, -0.00099945068359375, -0.01953125, 0.00982666015625, -0.005523681640625, -0.00128173828125, -0.000911712646484375, 0.0030517578125, 0.0283203...
[ 48316, 294, 188, 29838, 39450, 71013, 28636, 184, 135457, 1830, 71713, 214, 2633, 23180, 150, 2517, 132096, 63784, 129222, 618, 2886, 69988, 22819, 163612, 33938, 35484, 138410, 277, 41, 112997, 41732, 32271, 35593, 135932, 379, 428, 1162, 10...
[ 0.1646728515625, 0.011688232421875, 0.1201171875, 0.09912109375, 0.0540771484375, 0.18359375, 0.1416015625, 0.102294921875, 0.1119384765625, 0.0232696533203125, 0.1221923828125, 0.03436279296875, 0.0662841796875, 0.17236328125, 0.13427734375, 0.054290771484375, 0.1903076171875, 0.0...
embed
70511104_c0
70511104
fsharp
0
Title: I get an exception when I instantiate a WebBrowser Control in my F# app Problem title: I get an exception when I instantiate a WebBrowser Control in my F# app Tags: .net-core, f%23, windows-forms-core Problem: I get an exception when I instantiate a WebBrowser Control in my F# app I am trying to instantiate a We...
I get an exception when I instantiate a WebBrowser Control in my F# app I get an exception when I instantiate a WebBrowser Control in my F# app .net-core f%23 windows-forms-core System.IO.FileLoadException WebBrowser Control System System.Net.Http System.Windows.Forms ScriptErrorsSuppressed Dock DockStyle.Fill Document...
[ -0.002227783203125, 0.041748046875, -0.031005859375, -0.019287109375, 0.003570556640625, 0.01141357421875, 0.0216064453125, -0.010498046875, -0.0172119140625, -0.007415771484375, 0.01416015625, 0.0029449462890625, -0.0079345703125, -0.000598907470703125, 0.0076904296875, 0.002014160156...
[ 2046, 131527, 3229, 34648, 101426, 4002, 571, 15555, 2189, 27131, 23, 563, 4904, 4027, 1179, 30854, 1238, 3742, 54825, 5037, 12353, 17780, 174350, 15363, 712, 19279, 63928, 24447, 3062, 43342, 102973, 84654, 18468, 2037, 11856, 161824, 209480, ...
[ 0.02459716796875, 0.223876953125, 0.02410888671875, 0.1756591796875, 0.187744140625, 0.12451171875, 0.0648193359375, 0.16357421875, 0.1539306640625, 0.2464599609375, 0.009368896484375, 0.09393310546875, 0.20556640625, 0.144775390625, 0.186279296875, 0.1396484375, 0.04681396484375, ...
embed
23657418_c0
23657418
fsharp
0
Title: Why doesn&#x27;t my F# map implementation compile Problem title: Why doesn&#x27;t my F# map implementation compile Tags: dictionary, tail-recursion, f%23 Problem: Why doesn't my F# map implementation compile I've started learning F# and I'd like to write my own map function using tail-recursion. Here is what I h...
Why doesn&#x27;t my F# map implementation compile Why doesn&#x27;t my F# map implementation compile dictionary tail-recursion f%23 Why my_map ff_inner list_inner front::rest Type Expecting Why doesn't my F# map implementation compile I've started learning F# and I'd like to write my own map function using tail-recursio...
[ -0.01202392578125, 0.019287109375, 0.010009765625, 0.0155029296875, -0.00592041015625, 0.008544921875, -0.008544921875, 0.007354736328125, 0.00592041015625, -0.00677490234375, 0.015869140625, -0.0101318359375, 0.01007080078125, 0.035400390625, 0.0191650390625, 0.0028839111328125, -0....
[ 44084, 22027, 3768, 18, 759, 563, 4904, 22288, 208124, 9969, 1340, 45, 10763, 46741, 107, 48650, 1830, 1238, 3742, 62346, 26472, 73, 1679, 5303, 12912, 56644, 60457, 60075, 24762, 52080, 33022, 10002, 32354, 35839, 98352, 18499, 26008, 17932,...
[ 0.09014892578125, 0.0960693359375, 0.033447265625, 0.1021728515625, 0.035614013671875, 0.1258544921875, 0.2156982421875, 0.2010498046875, 0.1710205078125, 0.1845703125, 0.164794921875, 0.06304931640625, 0.1044921875, 0.2105712890625, 0.096923828125, 0.1868896484375, 0.091064453125, ...
embed
25278773_c0
25278773
fsharp
0
Title: How to execute this F# function Problem title: How to execute this F# function Tags: f%23 Problem: How to execute this F# function I tried to execute the following function in multiple ways, but it was always in error. So how do i execute constructQuery : type PersonName = | FirstOnly of string | LastOnly of str...
How to execute this F# function How to execute this F# function f%23 How PersonName FirstOnly LastOnly FirstLast May PersonName.FirstOnly Analyzer.fs FS0001 How to execute this F# function I tried to execute the following function in multiple ways, but it was always in error. So how do i execute constructQuery : -edit-...
[ -0.00180816650390625, -0.005584716796875, 0.000331878662109375, 0.0294189453125, -0.006622314453125, 0.000835418701171875, -0.0181884765625, 0.00506591796875, -0.00567626953125, -0.008544921875, 0.033935546875, -0.00531005859375, 0.0068359375, 0.006378173828125, 0.0098876953125, 0.0044...
[ 11249, 47, 71924, 13, 903, 563, 4904, 32354, 1238, 3949, 3742, 15270, 163612, 23972, 20320, 538, 21672, 2729, 271, 4347, 207263, 33326, 53, 4383, 17447, 93774, 188735, 37842, 70, 25632, 23, 48716, 48322, 11343, 18499, 3642, 54, 17, 64549, ...
[ 0.09759521484375, 0.10137939453125, 0.2408447265625, 0.127685546875, 0.1513671875, 0.1572265625, 0.227783203125, 0.21923828125, 0.1351318359375, 0.043731689453125, 0.1851806640625, 0.169677734375, 0.1451416015625, 0.107666015625, 0.179443359375, 0.0950927734375, 0.1513671875, 0.135...
embed
17053368_c0
17053368
fsharp
0
Title: How to define operators for discriminated unions in f# Problem title: How to define operators for discriminated unions in f# Tags: discriminated-union, f%23 Problem: How to define operators for discriminated unions in f# I have the code to implement some geometric operations between primitives type point = doubl...
How to define operators for discriminated unions in f# How to define operators for discriminated unions in f# discriminated-union f%23 How Point Line Vector Circle this.ToString x0-x1 y0-y1 How to define operators for discriminated unions in f# I have the code to implement some geometric operations between primitives A...
[ -0.01470947265625, 0.0028839111328125, 0.01251220703125, 0.005401611328125, -0.006683349609375, -0.007354736328125, -0.01104736328125, 0.00506591796875, 0.0087890625, 0.002593994140625, 0.0089111328125, -0.0235595703125, 0.034423828125, -0.01470947265625, -0.01275634765625, 0.000740051...
[ 11249, 61924, 39933, 7, 100, 55970, 3674, 69941, 1238, 4904, 87046, 3742, 41097, 16777, 2609, 18770, 163731, 903, 7763, 71713, 214, 1022, 2389, 425, 418, 113, 53, 23, 18151, 29479, 84183, 41018, 17721, 128489, 9969, 34759, 103510, 14858, 95...
[ 0.0269927978515625, 0.1966552734375, 0.2568359375, 0.0985107421875, 0.0789794921875, 0.2362060546875, 0.1063232421875, 0.1851806640625, 0.1309814453125, 0.2010498046875, 0.150146484375, 0.0875244140625, 0.130859375, 0.1317138671875, 0.1156005859375, 0.114013671875, 0.148681640625, ...
embed
47824390_c0
47824390
fsharp
0
Title: When are module level &quot;constant&quot; arrays being initialized in F# Problem title: When are module level &quot;constant&quot; arrays being initialized in F# Tags: f%23 Problem: When are module level "constant" arrays being initialized in F# The question came up while I was trying to write a lookup table an...
When are module level &quot;constant&quot; arrays being initialized in F# When are module level &quot;constant&quot; arrays being initialized in F# f%23 When Foo Foo.bar When are module level "constant" arrays being initialized in F# The question came up while I was trying to write a lookup table and during debugging I...
[ 0.023193359375, 0.004730224609375, -0.0079345703125, 0.004150390625, 0.018798828125, -0.01177978515625, 0.0191650390625, 0.0184326171875, -0.0023040771484375, 0.00101470947265625, -0.0028533935546875, 0.03466796875, 0.0048828125, 0.00537109375, -0.006591796875, -0.01141357421875, 0.0...
[ 14847, 88996, 17366, 2271, 42539, 10298, 4778, 61475, 29367, 563, 4904, 1238, 3742, 9572, 31, 1299, 2037, 23180, 53, 9969, 1340, 72367, 1733, 21, 3285, 51671, 121413, 18151, 5974, 38415, 26499, 5, 2046, 239, 5117, 17203, 89726, 42378, 75536...
[ 0.09075927734375, 0.227783203125, 0.197265625, 0.0885009765625, 0.1915283203125, 0.1741943359375, 0.14404296875, 0.1934814453125, 0.099365234375, 0.11083984375, 0.174560546875, 0.041595458984375, 0.054412841796875, 0.1717529296875, 0.163818359375, 0.22705078125, 0.011260986328125, ...
embed
43929945_c0
43929945
fsharp
0
Title: How to show type information when there is an error squiggel in visual studio [fsharp] Problem title: How to show type information when there is an error squiggel in visual studio [fsharp] Tags: visual-studio, f%23, intellisense Problem: How to show type information when there is an error squiggel in visual stud...
How to show type information when there is an error squiggel in visual studio [fsharp] How to show type information when there is an error squiggel in visual studio [fsharp] visual-studio f%23 intellisense How Query How to show type information when there is an error squiggel in visual studio [fsharp] I am writing some...
[ 0.00860595703125, 0.01708984375, -0.01116943359375, 0.000598907470703125, 0.0059814453125, -0.0012969970703125, -0.0089111328125, 0.00341796875, -0.007110595703125, -0.01104736328125, 0.00038909912109375, -0.0030364990234375, 0.0213623046875, -0.02685546875, 0.0118408203125, 0.01342773...
[ 11249, 7639, 10644, 4677, 3229, 2685, 18499, 91, 3181, 177, 2679, 21176, 12275, 420, 89280, 254, 83, 142, 52629, 3742, 892, 27077, 58836, 23, 93774, 3467, 18151, 114669, 645, 5117, 13315, 1957, 9790, 50997, 4205, 41206, 237, 29569, 1274, ...
[ 0.03167724609375, 0.1890869140625, 0.2587890625, 0.179931640625, 0.07537841796875, 0.06982421875, 0.2459716796875, 0.04156494140625, 0.1492919921875, 0.0997314453125, 0.2037353515625, 0.1605224609375, 0.199951171875, 0.0474853515625, 0.1435546875, 0.1146240234375, 0.070068359375, 0...
embed
24966640_c0
24966640
fsharp
0
Title: error FS0001: Type mismatch. Expecting a &#x27;a -&gt; int but given a &#x27;a -&gt; unit Problem title: error FS0001: Type mismatch. Expecting a &#x27;a -&gt; int but given a &#x27;a -&gt; unit Tags: f%23 Problem: error FS0001: Type mismatch. Expecting a 'a -> int but given a 'a -> unit Receiving an error: "err...
error FS0001: Type mismatch. Expecting a &#x27;a -&gt; int but given a &#x27;a -&gt; unit error FS0001: Type mismatch. Expecting a &#x27;a -&gt; int but given a &#x27;a -&gt; unit f%23 FS0001 Type Expecting System.Numerics EntryPoint int64 Seq.exists Seq.filter Seq.sum Seq.unfold Some Seq.takeWhile Seq.max error FS0001...
[ 0.006927490234375, 0.021240234375, 0.000217437744140625, 0.004669189453125, 0.013671875, -0.008056640625, 0.00567626953125, -0.0184326171875, 0.002349853515625, 0.004119873046875, 0.00640869140625, 0.01068115234375, -0.0035552978515625, -0.000499725341796875, 0.0174560546875, -0.007263...
[ 18499, 93774, 188735, 60457, 1239, 98753, 60075, 24762, 3768, 11, 5386, 23, 18, 1284, 34475, 10, 25072, 1238, 3742, 12353, 15123, 147534, 13307, 864, 54376, 120337, 11832, 42822, 78219, 24084, 188800, 214, 17368, 8273, 150, 282, 7986, 25632, ...
[ 0.166015625, 0.1529541015625, 0.28515625, 0.2227783203125, 0.1197509765625, 0.289794921875, 0.1505126953125, 0.1826171875, 0.044189453125, 0.08087158203125, 0.0149688720703125, 0.1090087890625, 0.0970458984375, 0.1275634765625, 0.1119384765625, 0.012481689453125, 0.207275390625, 0....
embed
31709509_c0
31709509
fsharp
0
Title: How to deal a card using F# Problem title: How to deal a card using F# Tags: f%23, functional-programming Problem: 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 = Car...
How to deal a card using F# How to deal a card using F# f%23 functional-programming F# How Game Cards Players Deck Card deck:Deck System.Random randomGenerator.Next deck.Length deck.Item List.filter deck.IsEmpty How to deal a card using F# I've been working on modeling a popular card game (Love Letter) using F# to lear...
[ 0.004302978515625, -0.00457763671875, 0.02099609375, -0.004913330078125, 0.0186767578125, 0.0135498046875, 0.005218505859375, -0.029541015625, 0.01409912109375, -0.03076171875, 0.033203125, 0.033447265625, -0.0235595703125, 0.0157470703125, 0.0059814453125, -0.0242919921875, 0.010925...
[ 11249, 47, 35142, 10, 20596, 17368, 563, 4904, 1238, 3742, 123309, 28966, 13547, 23660, 60560, 162163, 8, 2594, 120152, 92, 12353, 126525, 3815, 96759, 105376, 56, 4597, 81280, 2982, 32036, 120337, 134332, 939, 20697, 3299, 5700, 6712, 104711...
[ 0.05242919921875, 0.0426025390625, 0.1954345703125, 0.05841064453125, 0.2191162109375, 0.0948486328125, 0.1488037109375, 0.2174072265625, 0.10321044921875, 0.1005859375, 0.11669921875, 0.103759765625, 0.072998046875, 0.1456298828125, 0.1209716796875, 0.1624755859375, 0.14208984375, ...
embed
46889694_c0
46889694
fsharp
0
Title: xUnit and FParsec &quot;Object reference not set to an instance of an object&quot; Problem title: xUnit and FParsec &quot;Object reference not set to an instance of an object&quot; Tags: fparsec, f%23, xunit Problem: xUnit and FParsec "Object reference not set to an instance of an object" I am working my way thr...
xUnit and FParsec &quot;Object reference not set to an instance of an object&quot; xUnit and FParsec &quot;Object reference not set to an instance of an object&quot; fparsec f%23 xunit ParseError System.NullReferenceException 1 FParsec Object Xunit Success Failure UserState Parser floatBetweenBrackets:Parser Fact Parsi...
[ 0.005889892578125, 0.01239013671875, -0.01446533203125, 0.0021514892578125, 0.00135040283203125, 0.0172119140625, 0.0284423828125, -0.03125, 0.00112152099609375, 0.0240478515625, 0.001251220703125, 0.006011962890625, 0.000484466552734375, 0.0029449462890625, 0.0130615234375, -0.0122680...
[ 1022, 85600, 18, 136, 563, 28636, 39797, 46471, 75161, 91067, 959, 5423, 47, 110527, 36746, 1238, 2500, 3742, 10438, 6773, 2392, 184, 18468, 31611, 12353, 18444, 1181, 4332, 69988, 63928, 106, 134549, 19032, 144053, 190355, 53400, 135206, 218...
[ 0.152099609375, 0.26220703125, 0.135498046875, 0.1004638671875, 0.149169921875, 0.1697998046875, 0.218994140625, 0.110595703125, 0.1925048828125, 0.272216796875, 0.1231689453125, 0.162841796875, 0.1031494140625, 0.22021484375, 0.194091796875, 0.090576171875, 0.124267578125, 0.13525...
embed
62408337_c0
62408337
fsharp
0
Title: How to combine large data sets Problem title: How to combine large data sets Tags: f%23 Problem: How to combine large data sets I need to full outer join two lists, parsed from a file, where each list has > 14 million entries. My first thought was using a simple solution using System.Linq type AccountingData = {...
How to combine large data sets How to combine large data sets f%23 How System.Linq AccountingData AccountingId Year Month Value x.AccountingId y.AccountingId g.DefaultIfEmpty obj.ReferenceEquals Enumerable.Union Seq.map Tuple.swap How to combine large data sets I need to full outer join two lists, parsed from a file, w...
[ 0.01611328125, 0.03271484375, -0.003692626953125, 0.007476806640625, -0.006500244140625, 0.0162353515625, 0.000614166259765625, 0.0032806396484375, 0.021484375, 0.004180908203125, 0.00537109375, 0.0079345703125, 0.0108642578125, 0.0032501220703125, -0.005889892578125, -0.00546264648437...
[ 11249, 47, 70163, 21334, 2053, 5423, 7, 1238, 3949, 3742, 12353, 866, 44982, 61417, 214, 137989, 71, 42552, 12982, 127, 190060, 1022, 13400, 128396, 113, 706, 187423, 11, 134332, 939, 995, 170, 69988, 71723, 316, 2886, 147547, 864, 62346, ...
[ 0.1199951171875, 0.08575439453125, 0.272705078125, 0.19287109375, 0.140380859375, 0.2322998046875, 0.0235748291015625, 0.060333251953125, 0.03497314453125, 0.1512451171875, 0.106201171875, 0.0736083984375, 0.177001953125, 0.1341552734375, 0.0286865234375, 0.048736572265625, 0.0422668...
embed
42468208_c0
42468208
fsharp
0
Title: F Sharp The target &quot;Build&quot; does not exist in the project Problem title: F Sharp The target &quot;Build&quot; does not exist in the project Tags: f%23-fake, visual-studio-code, f%23, ionide Problem: F Sharp The target "Build" does not exist in the project Hello I am trying to learn F#, I'd like to compi...
F Sharp The target &quot;Build&quot; does not exist in the project F Sharp The target &quot;Build&quot; does not exist in the project f%23-fake visual-studio-code f%23 ionide Sharp Build Building Users ConsoleTest ConsoleTest.fsproj MSB4057 F Sharp The target "Build" does not exist in the project Hello I am trying to l...
[ -0.0111083984375, 0.0390625, 0.0028076171875, 0.00125885009765625, 0.0186767578125, 0.0079345703125, -0.00787353515625, -0.008544921875, -0.001678466796875, 0.0091552734375, -0.00567626953125, 0.001434326171875, 0.00872802734375, 0.0240478515625, 0.015625, 0.00262451171875, -0.000318...
[ 563, 197106, 30388, 121137, 14602, 959, 32316, 13452, 1238, 1021, 350, 21176, 52629, 40899, 45339, 2506, 104919, 53400, 40777, 111337, 17447, 3454, 170, 2839, 12243, 23, 30698, 4904, 9969, 1340, 98441, 134629, 4857, 73372, 22968, 28864, 20600, ...
[ 0.18359375, 0.27734375, 0.2685546875, 0.26708984375, 0.060211181640625, 0.119140625, 0.1920166015625, 0.1385498046875, 0.05419921875, 0.1239013671875, 0.00604248046875, 0.1331787109375, 0.1669921875, 0.1573486328125, 0.08740234375, 0.1806640625, 0.16357421875, 0.0772705078125, 0....
embed
25515513_c0
25515513
fsharp
0
Title: Need help optimizing my code f# (creating a array of tuples) Problem title: Need help optimizing my code f# (creating a array of tuples) Tags: f%23, list, optimization, tuples, recursion Problem: Need help optimizing my code f# (creating a array of tuples) I need help optimizing this code, it takes 12 seconds an...
Need help optimizing my code f# (creating a array of tuples) Need help optimizing my code f# (creating a array of tuples) f%23 list optimization tuples recursion Need Array.map Tuple x:int ID:string Information:string ID.Length Information List.filter List.toArray Array.append FinalTuple Need help optimizing my code f#...
[ 0.018798828125, 0.00799560546875, -0.0004177093505859375, 0.01434326171875, 0.00390625, -0.02392578125, -0.0054931640625, -0.01806640625, 0.00927734375, -0.0184326171875, 0.0152587890625, -0.0086669921875, -0.0101318359375, 0.004119873046875, 0.0031585693359375, 0.0020599365234375, 0...
[ 52889, 4358, 15572, 84382, 759, 18151, 1238, 4904, 129147, 10298, 53, 111, 370, 99726, 3949, 3742, 5303, 87235, 195625, 1830, 69253, 62346, 1371, 8705, 1022, 4288, 11338, 91693, 32007, 449, 32036, 120337, 188, 7614, 7092, 9007, 3611, 27188, ...
[ 0.106689453125, 0.127685546875, 0.1876220703125, 0.1014404296875, 0.05279541015625, 0.1741943359375, 0.116455078125, 0.171142578125, 0.06781005859375, 0.0897216796875, 0.043182373046875, 0.05621337890625, 0.1446533203125, 0.2235107421875, 0.008331298828125, 0.165771484375, 0.14538574...
embed
10166626_c0
10166626
fsharp
0
Title: Apply several aggregate functions with one enumeration Problem title: Apply several aggregate functions with one enumeration Tags: f%23, sequence Problem: Apply several aggregate functions with one enumeration Let's assume I have a series of functions that work on a sequence, and I want to use them together in t...
Apply several aggregate functions with one enumeration Apply several aggregate functions with one enumeration f%23 sequence Apply Apply several aggregate functions with one enumeration Let's assume I have a series of functions that work on a sequence, and I want to use them together in the following fashion: The code a...
[ -0.004119873046875, 0.0091552734375, -0.0198974609375, -0.0002899169921875, 0.004302978515625, -0.0091552734375, -0.0040283203125, 0.00531005859375, 0.00335693359375, -0.03955078125, 0.00170135498046875, 0.0390625, 0.00927734375, 0.033935546875, 0.015869140625, -0.01116943359375, 0.0...
[ 5659, 538, 40368, 197564, 13, 32354, 7, 678, 1632, 189085, 1363, 1238, 3949, 3742, 40, 944, 41591, 36549, 4488, 98, 3956, 3444, 4527, 2856, 25842, 54543, 18151, 36917, 67, 186351, 60892, 1221, 8337, 5701, 16750, 1284, 4734, 24145, 1884, 1...
[ 0.165771484375, 0.0667724609375, 0.1783447265625, 0.211669921875, 0.059783935546875, 0.2081298828125, 0.05902099609375, 0.09033203125, 0.162109375, 0.251708984375, 0.0323486328125, 0.0767822265625, 0.033538818359375, 0.1390380859375, 0.06268310546875, 0.1385498046875, 0.0215454101562...
embed
50615534_c0
50615534
fsharp
0
Title: Why this F# function runs only once? I call twice and it runs only once Problem title: Why this F# function runs only once? I call twice and it runs only once Tags: f%23 Problem: Why this F# function runs only once? I call twice and it runs only once I wrote the following code to test some MonteCarlo code in F#....
Why this F# function runs only once? I call twice and it runs only once Why this F# function runs only once? I call twice and it runs only once f%23 Why System.Random List.init rnd.NextDouble Seq.iter List.fold EntryPoint key_info Console.ReadKey Why this F# function runs only once? I call twice and it runs only once I...
[ 0.005645751953125, -0.0086669921875, 0.0185546875, -0.0142822265625, 0.0224609375, 0.0140380859375, 0.006927490234375, -0.007354736328125, 0.000537872314453125, -0.05322265625, 0.007537841796875, 0.0322265625, -0.00738525390625, 0.01300048828125, 0.0380859375, 0.00084686279296875, -0...
[ 44084, 903, 563, 4904, 32354, 127877, 4734, 24145, 32, 87, 11782, 186351, 136, 1238, 3742, 12353, 126525, 3815, 32036, 5, 73, 217, 2208, 81280, 2661, 503, 864, 16840, 42822, 357, 15123, 147534, 22799, 7319, 40777, 31345, 162429, 18151, 3034...
[ 0.143310546875, 0.089599609375, 0.1282958984375, 0.204345703125, 0.19873046875, 0.193115234375, 0.158203125, 0.235595703125, 0.0059814453125, 0.033203125, 0.1668701171875, 0.197265625, 0.046600341796875, 0.080810546875, 0.1019287109375, 0.1134033203125, 0.1102294921875, 0.128540039...
embed
38360308_c0
38360308
fsharp
0
Title: F# active pattern is not defined Problem title: F# active pattern is not defined Tags: f%23 Problem: F# active pattern is not defined I'm following the solution from here for using the DateTime.TryParseExact (which is so much less friendly than DateTime.TryParse) into a DateTime option To save you a click, here'...
F# active pattern is not defined F# active pattern is not defined f%23 DateTimeExact DateTime.TryParseExact Globalization.CultureInfo.InvariantCulture Globalization.DateTimeStyles.None Some None M-d-yyyy DateTime F# active pattern is not defined I'm following the solution from here for using the DateTime.TryParseExact ...
[ 0.00543212890625, 0.004425048828125, -0.00130462646484375, 0.031494140625, -0.0142822265625, 0.0084228515625, -0.0091552734375, 0.004730224609375, 0.00372314453125, 0.0130615234375, 0.0172119140625, 0.0120849609375, 0.0166015625, 0.0142822265625, 0.01446533203125, 0.00921630859375, 0...
[ 563, 4904, 36457, 103510, 959, 61924, 83, 1238, 3742, 25512, 70059, 19279, 47013, 1294, 28636, 13453, 47691, 202, 93147, 162591, 86291, 209480, 34034, 29806, 17368, 184, 5045, 40715, 101786, 3934, 35829, 18158, 9790, 4527, 88996, 13204, 28032, ...
[ 0.1256103515625, 0.2261962890625, 0.218017578125, 0.2149658203125, 0.08807373046875, 0.18212890625, 0.0157928466796875, 0.047576904296875, 0.06903076171875, 0.1177978515625, 0.180908203125, 0.09716796875, 0.1766357421875, 0.1068115234375, 0.113037109375, 0.07720947265625, 0.034179687...
embed
41119663_c0
41119663
fsharp
0
Title: F# vs Scala - why do I need to tell F# the type of things? Problem title: F# vs Scala - why do I need to tell F# the type of things? Tags: functional-programming, scala, type-inference, f%23 Problem: F# vs Scala - why do I need to tell F# the type of things? I am starting off my adventures in F# (and Scala). One...
F# vs Scala - why do I need to tell F# the type of things? F# vs Scala - why do I need to tell F# the type of things? functional-programming scala type-inference f%23 Scala List List.map F# vs Scala - why do I need to tell F# the type of things? I am starting off my adventures in F# (and Scala). One of the main benefit...
[ 0.0294189453125, 0.00469970703125, 0.004241943359375, -0.0067138671875, -0.004608154296875, -0.013427734375, -0.00860595703125, 0.0157470703125, 0.0032958984375, -0.01507568359375, -0.003936767578125, -0.0244140625, -0.004180908203125, 0.012451171875, 0.0137939453125, -0.00558471679687...
[ 563, 4904, 20209, 152653, 11, 15400, 3871, 14192, 70, 10644, 111, 8966, 123309, 28966, 146232, 73, 69988, 1238, 3742, 32036, 62346, 47, 156578, 5201, 72382, 28670, 10752, 177, 1884, 53498, 6620, 360, 831, 33022, 9969, 34759, 93002, 1022, 83...
[ 0.156494140625, 0.2213134765625, 0.1612548828125, 0.215087890625, 0.1339111328125, 0.124755859375, 0.08319091796875, 0.156982421875, 0.0186767578125, 0.229248046875, 0.10040283203125, 0.1318359375, 0.0924072265625, 0.066162109375, 0.1934814453125, 0.03619384765625, 0.147705078125, ...
embed
50736760_c0
50736760
fsharp
0
Title: Why does NuGet complain about System.ValueTuple (4.3.1)? Problem title: Why does NuGet complain about System.ValueTuple (4.3.1)? Tags: .net-core, f%23, nuget, visual-studio, valuetuple Problem: Why does NuGet complain about System.ValueTuple (4.3.1)? I've just created console F# application for dotnet core 2. VS...
Why does NuGet complain about System.ValueTuple (4.3.1)? Why does NuGet complain about System.ValueTuple (4.3.1)? .net-core f%23 nuget visual-studio valuetuple Why NuGet System.ValueTuple System.ValueType PackageReference Include Version Condition DisableImplicitSystemValueTupleReference _FrameworkNeedsValueTupleRefere...
[ -0.0027313232421875, 0.00860595703125, 0.00136566162109375, -0.005767822265625, -0.004791259765625, 0.004913330078125, -0.006072998046875, 0.0059814453125, 0.01141357421875, 0.02783203125, 0.001251220703125, 0.0306396484375, -0.002838134765625, 0.0269775390625, 0.00162506103515625, 0.0...
[ 44084, 1429, 724, 126, 186992, 12353, 856, 50770, 15665, 8705, 9451, 97109, 1672, 5, 1179, 30854, 1238, 3742, 315, 3794, 21176, 52629, 34292, 458, 196707, 56607, 69988, 822, 40647, 46347, 6206, 2886, 128878, 60923, 84293, 108386, 6433, 297, ...
[ 0.05615234375, 0.1715087890625, 0.1568603515625, 0.1639404296875, 0.179443359375, 0.1522216796875, 0.1256103515625, 0.209228515625, 0.131591796875, 0.1719970703125, 0.1334228515625, 0.22119140625, 0.00811767578125, 0.007293701171875, 0.1153564453125, 0.08990478515625, 0.009765625, ...
embed
1458875_c0
1458875
fsharp
0
Title: F# Operator Resolution Problem title: F# Operator Resolution Tags: inheritance, .net, static, f%23 Problem: F# Operator Resolution I have a class called Vector which implements a number of operators such as + and properties such as Count. Vector is also subtyped by classes such as DenseVector, SparseVector which...
F# Operator Resolution F# Operator Resolution inheritance .net static f%23 Operator Resolution Vector v.Count w.Count F# Operator Resolution I have a class called Vector which implements a number of operators such as + and properties such as Count. Vector is also subtyped by classes such as DenseVector, SparseVector wh...
[ 0.00885009765625, 0.01324462890625, 0.01226806640625, 0.006011962890625, 0.0166015625, -0.0194091796875, -0.027587890625, -0.00445556640625, -0.0019683837890625, -0.0283203125, -0.01385498046875, -0.0198974609375, 0.003814697265625, 0.0087890625, -0.03173828125, -0.0194091796875, -0....
[ 563, 4904, 150922, 853, 166589, 23, 3334, 217, 1179, 201939, 1238, 3949, 3742, 2609, 18770, 81, 108210, 148, 18507, 29479, 14012, 39933, 997, 183871, 1614, 50986, 61112, 237, 1575, 184, 26455, 37456, 33022, 1326, 3584, 31, 1631, 592, 73243,...
[ 0.13037109375, 0.1981201171875, 0.2318115234375, 0.06842041015625, 0.1783447265625, 0.04278564453125, 0.1361083984375, 0.032470703125, 0.1124267578125, 0.069580078125, 0.0933837890625, 0.0093994140625, 0.103759765625, 0.19384765625, 0.1986083984375, 0.03558349609375, 0.142822265625, ...
embed
20724574_c0
20724574
fsharp
0
Title: Ref with objects Problem title: Ref with objects Tags: unity-game-engine, f%23 Problem: Ref with objects namespace FsharpUnity open UnityEngine type DebugTest() = inherit MonoBehaviour() member this.Update() = let m = Input.mousePosition let look = Camera.main.ScreenPointToRay(m) let mutable r = new RaycastHit()...
Ref with objects Ref with objects unity-game-engine f%23 Ref FsharpUnity UnityEngine DebugTest MonoBehaviour this.Update Input.mousePosition Camera.main.ScreenPointToRay RaycastHit Physics.Raycast Debug.Log r.point.ToString Ref with objects I am currently trying to use F# with Unity3d and I am not sure how I would use ...
[ 0.007293701171875, 0.0301513671875, 0.0224609375, 0.00119781494140625, -0.0012054443359375, 0.0040283203125, -0.0247802734375, -0.006195068359375, -0.00396728515625, -0.026123046875, 0.029052734375, 0.01708984375, 0.0108642578125, -0.005523681640625, 0.01434326171875, 0.00030517578125,...
[ 53295, 678, 36746, 51, 2481, 35311, 128897, 1238, 3742, 563, 89280, 14256, 172904, 91384, 1212, 262, 85779, 111337, 77879, 6766, 98409, 903, 152872, 432, 4032, 7192, 172, 44813, 24931, 147534, 7763, 117707, 31681, 55741, 841, 217, 165712, 113...
[ 0.295166015625, 0.1734619140625, 0.205810546875, 0.02899169921875, 0.052947998046875, 0.05767822265625, 0.1263427734375, 0.040313720703125, 0.0701904296875, 0.060943603515625, 0.120361328125, 0.01336669921875, 0.12890625, 0.0853271484375, 0.0712890625, 0.0550537109375, 0.169799804687...
embed
9382165_c0
9382165
fsharp
0
Title: how to make these simple functions tail recursive in f# Problem title: how to make these simple functions tail recursive in f# Tags: recursion, tail-recursion, f%23, list Problem: how to make these simple functions tail recursive in f# I have these these two functions //Remove all even indexed elements from a li...
how to make these simple functions tail recursive in f# how to make these simple functions tail recursive in f# recursion tail-recursion f%23 list a Remove x0::x1::xs x1::removeEven how to make these simple functions tail recursive in f# I have these these two functions That work. But I thought now that I was at it tha...
[ -0.0045166015625, 0.04833984375, 0.00122833251953125, 0.0169677734375, -0.01190185546875, 0.00787353515625, -0.00927734375, -0.0213623046875, 0.00127410888671875, -0.01202392578125, 0.02001953125, -0.01373291015625, 0.0150146484375, 0.0032806396484375, 0.018310546875, 0.00848388671875,...
[ 3642, 47, 3249, 6097, 8781, 32354, 7, 46741, 195625, 5844, 23, 1238, 4904, 1830, 107, 48650, 3949, 3742, 5303, 10, 181139, 1022, 2389, 425, 82825, 26973, 272, 1353, 765, 6626, 4488, 7941, 27689, 4358, 20662, 7228, 35978, 43240, 27781, 282...
[ 0.0712890625, 0.007415771484375, 0.1029052734375, 0.08056640625, 0.1856689453125, 0.1893310546875, 0.03656005859375, 0.278564453125, 0.2236328125, 0.1431884765625, 0.043853759765625, 0.1224365234375, 0.1798095703125, 0.0625, 0.0723876953125, 0.1737060546875, 0.033172607421875, 0.15...
embed
1817248_c0
1817248
fsharp
0
Title: Patterns to mix F# and C# in the same solution Problem title: Patterns to mix F# and C# in the same solution Tags: .net, c%23, design-patterns, f%23 Problem: Patterns to mix F# and C# in the same solution I studied few functional languages, mostly for academical purposes. Nevertheless, when I have to project a c...
Patterns to mix F# and C# in the same solution Patterns to mix F# and C# in the same solution .net c%23 design-patterns f%23 Patterns Patterns to mix F# and C# in the same solution I studied few functional languages, mostly for academical purposes. Nevertheless, when I have to project a client-server application I alwa...
[ -0.0014190673828125, 0.01373291015625, 0.006622314453125, 0.006134033203125, -0.00408935546875, -0.0032196044921875, -0.0245361328125, 0.01373291015625, 0.0206298828125, -0.0283203125, -0.003814697265625, -0.0146484375, 0.0115966796875, 0.013671875, -0.000553131103515625, -0.0033721923...
[ 9876, 22766, 47, 17664, 563, 4904, 136, 313, 5701, 29806, 23, 1179, 4331, 4453, 1238, 3742, 22282, 123309, 46876, 13452, 23282, 39642, 38415, 11343, 30666, 93702, 50161, 11724, 180, 20880, 27140, 59121, 24447, 170846, 5809, 92940, 1286, 21470...
[ 0.1402587890625, 0.124267578125, 0.01275634765625, 0.2330322265625, 0.1602783203125, 0.25048828125, 0.10028076171875, 0.0982666015625, 0.1153564453125, 0.126220703125, 0.0501708984375, 0.101318359375, 0.1278076171875, 0.0828857421875, 0.0328369140625, 0.00714111328125, 0.001190185546...
embed
42892313_c0
42892313
fsharp
0
Title: Unit testing higher order functions in F# Problem title: Unit testing higher order functions in F# Tags: unit-testing, higher-order-functions, functional-programming, f%23 Problem: Unit testing higher order functions in F# Take the following F# example: let parse mapDate mapLevel mapMessge (groups : string list)...
Unit testing higher order functions in F# Unit testing higher order functions in F# unit-testing higher-order-functions functional-programming f%23 Unit DateTime Int32.Parse Level Message Unit testing higher order functions in F# Take the following F# example: I can unit test the map functions independently that's ok, ...
[ -0.01324462890625, 0.01458740234375, -0.004974365234375, 0.005340576171875, -0.00634765625, 0.00872802734375, 0.00341796875, 0.00848388671875, -0.00051116943359375, 0.0157470703125, -0.01953125, 0.01202392578125, -0.0003871917724609375, 0.004119873046875, 0.00122833251953125, 0.0035858...
[ 46640, 134234, 77546, 12989, 32354, 563, 4904, 25072, 6954, 80596, 137175, 123309, 28966, 1238, 3949, 3742, 25512, 70059, 6460, 28636, 84136, 48205, 23, 27781, 3034, 22288, 41371, 3664, 3642, 450, 11782, 115081, 237, 10750, 26785, 313, 2806, ...
[ 0.207763671875, 0.252685546875, 0.1431884765625, 0.1732177734375, 0.1951904296875, 0.134033203125, 0.23095703125, 0.188232421875, 0.2008056640625, 0.154296875, 0.159912109375, 0.1768798828125, 0.1114501953125, 0.0687255859375, 0.001800537109375, 0.1275634765625, 0.01226806640625, 0...
embed
13512519_c0
13512519
fsharp
0
Title: Enumerator and disposing in F# Problem title: Enumerator and disposing in F# Tags: ienumerable, idisposable, f%23 Problem: Enumerator and disposing in F# I am trying to draw lessons on the following behaviour from an example I simplified : let groupedEnum (input: 'a seq) = using (input.GetEnumerator()) (fun en -...
Enumerator and disposing in F# Enumerator and disposing in F# ienumerable idisposable f%23 System.NullReferenceException Enumerator input.GetEnumerator Seq.unfold en.MoveNext Some en.Current None WORKS List.ofSeq BOOM Enumerator and disposing in F# I am trying to draw lessons on the following behaviour from an example ...
[ -0.0042724609375, 0.0213623046875, 0.0013580322265625, -0.004974365234375, 0.017822265625, 0.002685546875, 0.00567626953125, 0.0014801025390625, 0.00518798828125, -0.026611328125, 0.004119873046875, 0.031005859375, 0.023193359375, 0.00640869140625, 0.005157470703125, -0.01409912109375,...
[ 357, 316, 56, 4597, 136, 91471, 449, 563, 4904, 2886, 3827, 7522, 1238, 3949, 3742, 12353, 18444, 1181, 69988, 63928, 107730, 647, 2606, 864, 42822, 22, 9083, 81280, 474, 15724, 438, 231355, 32036, 4390, 4233, 335, 158204, 182417, 224833, ...
[ 0.053741455078125, 0.197509765625, 0.1365966796875, 0.1629638671875, 0.0286407470703125, 0.19189453125, 0.035980224609375, 0.12353515625, 0.1878662109375, 0.0643310546875, 0.0472412109375, 0.1097412109375, 0.0849609375, 0.0018310546875, 0.1192626953125, 0.0963134765625, 0.05355834960...
embed
47788093_c0
47788093
fsharp
0
Title: Abbreviation (alternate name) of Dictionary in F# Problem title: Abbreviation (alternate name) of Dictionary in F# Tags: c%23, f%23 Problem: Abbreviation (alternate name) of Dictionary in F# https://msdn.microsoft.com/en-us/library/4kf43ys3(v=vs.110).aspx?cs-save-lang=1&cs-lang=fsharp#code-snippet-1 Converting b...
Abbreviation (alternate name) of Dictionary in F# Abbreviation (alternate name) of Dictionary in F# c%23 f%23 Abbreviation Dictionary Abbreviation (alternate name) of Dictionary in F# https://msdn.microsoft.com/en-us/library/4kf43ys3(v=vs.110).aspx?cs-save-lang=1&cs-lang=fsharp#code-snippet-1 Converting between C# List...
[ -0.004791259765625, 0.01300048828125, 0.00958251953125, -0.004608154296875, 0.00408935546875, -0.02001953125, 0.0020751953125, 0.005767822265625, 0.005706787109375, 0.02490234375, 0.0130615234375, 0.0079345703125, -0.00726318359375, 0.006378173828125, 0.023193359375, -0.001235961914062...
[ 3157, 105160, 14, 2320, 48283, 76, 67, 9351, 111, 147638, 23, 563, 4904, 501, 3742, 1238, 3949, 138410, 4439, 108999, 3066, 89280, 40899, 814, 17721, 313, 32036, 136, 2685, 142, 1563, 18507, 84293, 78457, 8996, 5256, 135932, 12259, 14055, ...
[ 0.0931396484375, 0.2200927734375, 0.1202392578125, 0.051544189453125, 0.1224365234375, 0.10015869140625, 0.05999755859375, 0.1246337890625, 0.049896240234375, 0.2362060546875, 0.08197021484375, 0.1898193359375, 0.2408447265625, 0.010345458984375, 0.1119384765625, 0.0823974609375, 0.0...
embed
53626237_c1
53626237
fsharp
1
InstanceListener(context kestrelCommunicationListener); override __.CreateServiceInstanceListeners() = seq { yield serviceInstanceListener(fun context -> kestrelCommunicationListener builder) } Code signals: Convert, Array, IEnumerable, ServiceInstanceListener, CreateServiceInstanceListeners, KestrelCommunicationListen...
InstanceListener(context kestrelCommunicationListener); override __.CreateServiceInstanceListeners() = seq { yield serviceInstanceListener(fun context -> kestrelCommunicationListener builder) } Code signals: Convert, Array, IEnumerable, ServiceInstanceListener, CreateServiceInstanceListeners, KestrelCommunicationListen...
[ 0.0014801025390625, -0.0068359375, -0.006072998046875, 0.002288818359375, 0.007781982421875, -0.00579833984375, 0.006439208984375, -0.01373291015625, 0.0147705078125, -0.030029296875, -0.033935546875, 0.0181884765625, 0.01141357421875, 0.0150146484375, 0.036376953125, -0.01470947265625...
[ 360, 116071, 154663, 39060, 2271, 22829, 311, 5967, 141, 166697, 14, 120639, 416, 112, 63784, 2182, 121979, 4153, 33, 1314, 864, 11180, 19388, 4516, 16498, 43701, 45367, 56, 28864, 26073, 12, 1657, 11549, 69253, 75536, 2606, 12349, 151313, ...
[ 0.05621337890625, 0.20703125, 0.292236328125, 0.2149658203125, 0.0655517578125, 0.160888671875, 0.07330322265625, 0.1796875, 0.130615234375, 0.117431640625, 0.07440185546875, 0.0894775390625, 0.1160888671875, 0.010406494140625, 0.0972900390625, 0.041595458984375, 0.1673583984375, 0...
embed
5662736_c0
5662736
fsharp
0
Title: F# - Factory Method Design Pattern Problem title: F# - Factory Method Design Pattern Tags: design-patterns, f%23 Problem: F# - Factory Method Design Pattern Below is my attempt at implementing the factory method design pattern using F# whilst trying to make it a little more functional (i.e. not a straight OO imp...
F# - Factory Method Design Pattern F# - Factory Method Design Pattern design-patterns f%23 Factory Method Design Pattern ISkateBoard Model SkateBoard Roskopp Peters this.Model Rob Duane SkateBoardFactory SantaCruzFactory F# - Factory Method Design Pattern Below is my attempt at implementing the factory method design pa...
[ -0.0164794921875, -0.0007476806640625, -0.011962890625, 0.0048828125, -0.000377655029296875, -0.01318359375, -0.0274658203125, 0.0087890625, -0.0157470703125, -0.00689697265625, 0.0087890625, -0.031494140625, -0.0072021484375, -0.005828857421875, -0.01519775390625, -0.02001953125, 0....
[ 563, 4904, 20, 144562, 74644, 11724, 9876, 22766, 4331, 4453, 1238, 3949, 3742, 15744, 37670, 12647, 5861, 13293, 12224, 67, 12015, 95375, 7948, 7, 903, 140290, 30520, 35319, 86, 135518, 31667, 7789, 47568, 17336, 83, 759, 81887, 29479, 70,...
[ 0.15673828125, 0.224853515625, 0.0277557373046875, 0.2578125, 0.210693359375, 0.1954345703125, 0.1812744140625, 0.1470947265625, 0.219482421875, 0.1630859375, 0.07501220703125, 0.0260772705078125, 0.1011962890625, 0.0399169921875, 0.12353515625, 0.1436767578125, 0.1180419921875, 0....
embed
30171272_c0
30171272
fsharp
0
Title: Using F# script replace powershell in production environment? Problem title: Using F# script replace powershell in production environment? Tags: powershell, f%23 Problem: Using F# script replace powershell in production environment? I've been using powershell script to automate some tasks on production servers. ...
Using F# script replace powershell in production environment? Using F# script replace powershell in production environment? powershell f%23 Using Limit GetFromFTP Unzip Run Using F# script replace powershell in production environment? I've been using powershell script to automate some tasks on production servers. Howev...
[ -0.004150390625, 0.01214599609375, 0.00182342529296875, 0.01336669921875, -0.0030059814453125, -0.0137939453125, 0.00762939453125, -0.000644683837890625, 0.0111083984375, -0.01434326171875, 0.0089111328125, 0.02587890625, 0.023193359375, 0.01214599609375, 0.0277099609375, 0.00321960449...
[ 345, 6953, 563, 4904, 26499, 91995, 14537, 128019, 23, 36049, 65998, 1238, 3949, 3742, 125177, 20779, 168407, 25217, 683, 992, 50836, 28398, 17368, 11408, 66211, 10723, 58359, 205969, 12654, 95103, 9433, 4127, 1286, 1452, 17203, 11435, 11787, ...
[ 0.0672607421875, 0.041046142578125, 0.1556396484375, 0.2391357421875, 0.237060546875, 0.1614990234375, 0.142578125, 0.2337646484375, 0.024261474609375, 0.1973876953125, 0.13916015625, 0.127197265625, 0.04315185546875, 0.1431884765625, 0.2103271484375, 0.0914306640625, 0.138671875, ...
embed
34706953_c0
34706953
fsharp
0
Title: How do I resolve a circular reference between union cases? Problem title: How do I resolve a circular reference between union cases? Tags: f%23 Problem: How do I resolve a circular reference between union cases? How do I resolve a circular reference between union cases? type ModuleInfo = | Author of Name | Secti...
How do I resolve a circular reference between union cases? How do I resolve a circular reference between union cases? f%23 How ModuleInfo Author Name Section Duration Url ManageModule.Entities FirstName LastName First Last Suffix Hours Minutes Seconds Module Modules Introduction Conclusion How do I resolve a circular r...
[ -0.0007781982421875, 0.0250244140625, -0.001922607421875, 0.0277099609375, -0.00054168701171875, -0.0216064453125, -0.0005950927734375, 0.00101470947265625, 0.004669189453125, -0.0093994140625, -0.00135040283203125, 0.01324462890625, 0.01318359375, 0.01275634765625, 0.0133056640625, 0....
[ 11249, 103608, 115339, 91067, 17721, 69941, 50218, 54, 87, 10, 1238, 3949, 3742, 63014, 13, 93147, 61804, 140978, 79843, 4143, 16456, 429, 91616, 8782, 118, 163612, 21672, 55923, 133250, 136043, 77648, 44891, 135523, 53299, 25632, 18499, 11853,...
[ 0.0753173828125, 0.227783203125, 0.251953125, 0.259765625, 0.179443359375, 0.2269287109375, 0.1549072265625, 0.013916015625, 0.037994384765625, 0.0239410400390625, 0.013275146484375, 0.0042724609375, 0.0760498046875, 0.133056640625, 0.006744384765625, 0.16259765625, 0.0987548828125, ...
embed
23755107_c0
23755107
fsharp
0
Title: finding primes very slow in F# Problem title: finding primes very slow in F# Tags: algorithm, f%23, primes Problem: finding primes very slow in F# I have answered Project Euler Question 7 very easily using Sieve of Eratosthenes in C and I had no problem with it. I am still quite new to F# so I tried implementing...
finding primes very slow in F# finding primes very slow in F# algorithm f%23 primes prime_at x::xs List.filter List.nth pos-1 Seq.forall Seq.nth Dump finding primes very slow in F# I have answered Project Euler Question 7 very easily using Sieve of Eratosthenes in C and I had no problem with it. I am still quite new to...
[ -0.007537841796875, 0.01446533203125, 0.0201416015625, -0.00469970703125, 0.01324462890625, -0.005279541015625, -0.01434326171875, -0.017822265625, -0.0189208984375, -0.055908203125, 0.021240234375, 0.02099609375, 0.001129150390625, -0.00372314453125, 0.01171875, 0.004547119140625, -...
[ 90791, 20809, 7, 4552, 72803, 563, 4904, 234873, 1238, 3742, 257, 1022, 425, 32036, 120337, 927, 3864, 5759, 5584, 864, 786, 2676, 23, 194663, 27331, 5177, 603, 68185, 361, 72546, 727, 272, 111, 14825, 1952, 2347, 1444, 313, 37842, 29479,...
[ 0.1298828125, 0.226806640625, 0.07220458984375, 0.130859375, 0.249755859375, 0.1468505859375, 0.2225341796875, 0.203125, 0.0677490234375, 0.1107177734375, 0.040771484375, 0.012237548828125, 0.02691650390625, 0.08111572265625, 0.1263427734375, 0.046295166015625, 0.14306640625, 0.027...
embed