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
58943076_c0
58943076
fsharp
0
Title: How to update nested record structure with lists Problem title: How to update nested record structure with lists Tags: f%23 Problem: How to update nested record structure with lists Can someone tell me how I can update a subitem in a nested record? I want to set isSelected to true for the Item with value = "B" t...
How to update nested record structure with lists How to update nested record structure with lists f%23 How MyItem isSelected:bool value:string MyModel list:MyItem m.list How to update nested record structure with lists Can someone tell me how I can update a subitem in a nested record? I want to set isSelected to true f...
[ -0.033203125, 0.00921630859375, 0.0172119140625, 0.02001953125, -0.001708984375, 0.0208740234375, -0.0164794921875, 0.006072998046875, 0.031494140625, 0.0238037109375, 0.020751953125, 0.0159912109375, 0.015380859375, 0.0167236328125, 0.0179443359375, -0.0206298828125, 0.0130004882812...
[ 11249, 47, 28350, 8512, 71, 17164, 45646, 678, 5303, 7, 1238, 3949, 3742, 2646, 2982, 83, 100184, 142484, 34292, 91693, 140290, 31852, 347, 6562, 22008, 14192, 3642, 831, 1614, 217, 195, 23, 3444, 5423, 294, 29568, 78426, 571, 959, 842, ...
[ 0.067626953125, 0.0648193359375, 0.19873046875, 0.25048828125, 0.1470947265625, 0.197509765625, 0.1990966796875, 0.1514892578125, 0.2010498046875, 0.06024169921875, 0.065673828125, 0.026214599609375, 0.10888671875, 0.050628662109375, 0.1253662109375, 0.0838623046875, 0.1365966796875,...
embed
23609598_c0
23609598
fsharp
0
Title: What's the difference between type 'a list' and type List<int> Problem title: What's the difference between type 'a list' and type List<int> Tags: f%23 Problem: What's the difference between type 'a list' and type List I'm new to F# and I seem to be having an issue getti...
What's the difference between type 'a list' and type List<int> What's the difference between type 'a list' and type List<int> f%23 What List listOne.Select ToList List.sum result.Dump What's the difference between type 'a list' and type List I'm new to F# and I seem to be havin...
[ 0.0029296875, 0.01214599609375, 0.0052490234375, 0.03076171875, -0.015380859375, 0.01507568359375, -0.0147705078125, 0.00927734375, 0.011474609375, -0.004547119140625, -0.003692626953125, -0.003021240234375, -0.00262451171875, 0.02099609375, -0.00885009765625, 0.002166748046875, 0.02...
[ 4865, 3768, 70, 60212, 17721, 10644, 11, 5303, 136, 32036, 4288, 1238, 3742, 62068, 100184, 717, 154663, 11832, 16750, 17726, 2676, 3525, 563, 4904, 31089, 20949, 10554, 111, 25632, 18151, 27489, 18499, 149201, 1836, 12921 ]
[ 0.042877197265625, 0.1043701171875, 0.0703125, 0.2010498046875, 0.1070556640625, 0.25439453125, 0.1300048828125, 0.2420654296875, 0.09405517578125, 0.231201171875, 0.094970703125, 0.039581298828125, 0.026031494140625, 0.1103515625, 0.07366943359375, 0.1107177734375, 0.1591796875, 0...
embed
13251948_c0
13251948
fsharp
0
Title: Trueskill Through Time - StackOverflowException Problem title: Trueskill Through Time - StackOverflowException Tags: f%23 Problem: Trueskill Through Time - StackOverflowException I'm trying to understand more about the Trueskill Through Time paper. Unfortunately my knowledge of F# is none existent and this is th...
Trueskill Through Time - StackOverflowException Trueskill Through Time - StackOverflowException f%23 StackOverflowException Trueskill Through Time Trueskill Through Time - StackOverflowException I'm trying to understand more about the Trueskill Through Time paper. Unfortunately my knowledge of F# is none existent and t...
[ -0.00994873046875, 0.021728515625, 0.010009765625, -0.0017547607421875, 0.0084228515625, -0.0169677734375, -0.03759765625, 0.002532958984375, 0.00360107421875, -0.044189453125, 0.02197265625, 0.01611328125, 0.00726318359375, 0.0001373291015625, 0.02099609375, 0.00165557861328125, 0.0...
[ 87599, 7, 119261, 194397, 19055, 6512, 2594, 156673, 118664, 19279, 63928, 1238, 3949, 3742, 28219, 15122, 185397, 51359, 563, 4904, 351, 99707, 903, 83, 4734, 46876, 18151, 82424, 19882, 51042, 5974, 1528, 19336, 121413, 290, 63399, 18499, 1...
[ 0.223876953125, 0.1051025390625, 0.2294921875, 0.197265625, 0.1763916015625, 0.1385498046875, 0.1077880859375, 0.16552734375, 0.222900390625, 0.0782470703125, 0.172119140625, 0.048828125, 0.0312042236328125, 0.139892578125, 0.012847900390625, 0.07489013671875, 0.0177459716796875, 0...
embed
52826384_c0
52826384
fsharp
0
Title: C# Interactive Location Problem title: C# Interactive Location Tags: c%23, fsi, csi, f%23, .net Problem: C# Interactive Location I use F# Interactive every day, so I like launching it from cmd, not just Visual Studio and Visual Studio Code. To do that, I have an environment variable called FSHARPINSTALLDIR in my...
C# Interactive Location C# Interactive Location c%23 fsi csi f%23 .net Interactive Location FSHARPINSTALLDIR PATH Program Files x86 Microsoft Visual Studio Enterprise Common7 IDE CommonExtensions FSharp C# Interactive Location I use F# Interactive every day, so I like launching it from cmd, not just Visual Studio and V...
[ 0.0019683837890625, 0.005950927734375, -0.00099945068359375, 0.00958251953125, -0.0033416748046875, 0.02734375, 0.0216064453125, 0.0064697265625, 0.00494384765625, -0.0196533203125, -0.0167236328125, 0.01263427734375, -0.02587890625, -0.003875732421875, 0.0218505859375, 0.0043334960937...
[ 313, 4904, 5337, 71232, 90788, 3742, 1238, 172, 29731, 3949, 1179, 93774, 61869, 139079, 22565, 23708, 123237, 436, 139909, 7663, 42724, 15276, 7244, 73372, 22968, 102247, 151301, 966, 36497, 19279, 128872, 3467, 254, 4527, 563, 11907, 5155, ...
[ 0.1021728515625, 0.276123046875, 0.22802734375, 0.271240234375, 0.243896484375, 0.060943603515625, 0.158935546875, 0.2359619140625, 0.158203125, 0.007232666015625, 0.140625, 0.1265869140625, 0.203857421875, 0.09332275390625, 0.1229248046875, 0.1337890625, 0.18212890625, 0.092651367...
embed
30603011_c0
30603011
fsharp
0
Title: F# finding only prime numbers Problem title: F# finding only prime numbers Tags: f%23, primes Problem: F# finding only prime numbers I'm recently new to F# so please bear with me. The problem i have is I'm trying to find only prime numbers. I've write this code: let isPrime n = let rec check i = i > n/2 || (n % ...
F# finding only prime numbers F# finding only prime numbers f%23 primes List.filter List.length x:int List.ofSeq F# finding only prime numbers I'm recently new to F# so please bear with me. The problem i have is I'm trying to find only prime numbers. I've write this code: trying to call but this is failed with message:...
[ -0.0162353515625, 0.034423828125, 0.007232666015625, 0.005523681640625, 0.022705078125, 0.001251220703125, 0.01251220703125, -0.004180908203125, 0.0147705078125, -0.0299072265625, -0.0009002685546875, -0.0191650390625, 0.0067138671875, 0.02587890625, -0.0035247802734375, 0.003784179687...
[ 563, 4904, 90791, 4734, 20809, 101935, 1238, 3949, 3742, 32036, 120337, 23986, 1022, 12, 4288, 4390, 4233, 864, 78684, 3525, 47, 22936, 81148, 678, 163, 2967, 765, 31577, 7413, 272, 33022, 903, 18151, 11782, 1284, 165523, 26008, 2499, 4358,...
[ 0.176025390625, 0.26953125, 0.118896484375, 0.1578369140625, 0.2138671875, 0.187744140625, 0.1282958984375, 0.050262451171875, 0.1600341796875, 0.1375732421875, 0.1693115234375, 0.022491455078125, 0.06939697265625, 0.000152587890625, 0.1063232421875, 0.093994140625, 0.0467529296875, ...
embed
3672362_c1
3672362
fsharp
1
's associated patterns changed throughout the code, then it works, but I don't really get why this has a type mismatch exception. Also is there a good way of dealing with 2 active patterns that are almost identical, but not quite? seems like there should be a way to factor the common stuff together. (as a side note, it...
's associated patterns changed throughout the code, then it works, but I don't really get why this has a type mismatch exception. Also is there a good way of dealing with 2 active patterns that are almost identical, but not quite? seems like there should be a way to factor the common stuff together. (as a side note, it...
[ -0.01318359375, 0.0198974609375, 0.00506591796875, 0.01055908203125, -0.002227783203125, -0.01531982421875, 0.01458740234375, -0.00360107421875, 0.0380859375, 0.0084228515625, 0.0031585693359375, 0.029296875, 0.0244140625, -0.0087890625, 0.0191650390625, -0.00128936767578125, 0.02026...
[ 242, 7, 137272, 103510, 98816, 87420, 18151, 442, 43240, 2046, 15400, 903, 1556, 10644, 1239, 98753, 131527, 4127, 3917, 184017, 678, 116, 36457, 621, 39555, 31943, 6827, 1284, 959, 32233, 31461, 39210, 41884, 25842, 18597, 1916, 2409, 5281, ...
[ 0.067626953125, 0.0660400390625, 0.21337890625, 0.2413330078125, 0.1939697265625, 0.09417724609375, 0.1700439453125, 0.040435791015625, 0.11083984375, 0.0295257568359375, 0.04241943359375, 0.042816162109375, 0.00421142578125, 0.2174072265625, 0.143798828125, 0.280029296875, 0.2011718...
embed
8045079_c0
8045079
fsharp
0
Title: Decimal Conversion F# Script vs. Compiled F# Problem title: Decimal Conversion F# Script vs. Compiled F# Tags: type-conversion, f%23, decimal Problem: Decimal Conversion F# Script vs. Compiled F# In the F# Interactive, the following piece of code works: > printfn "%A" (decimal 1I) 1M However, in a compiled F# pr...
Decimal Conversion F# Script vs. Compiled F# Decimal Conversion F# Script vs. Compiled F# type-conversion f%23 decimal Decimal Conversion Script Compiled Numerics.BigInteger Decimal Conversion F# Script vs. Compiled F# In the F# Interactive, the following piece of code works: However, in a compiled F# program, an error...
[ -0.00885009765625, 0.00689697265625, 0.006103515625, 0.0279541015625, -0.0091552734375, -0.00089263916015625, -0.012451171875, 0.000640869140625, -0.0003948211669921875, 0.01165771484375, -0.008544921875, 0.00897216796875, -0.00007486343383789062, 0.0203857421875, 0.0198974609375, -0.0...
[ 49132, 2749, 1657, 46354, 563, 4904, 84654, 20209, 15612, 14, 6259, 10644, 2271, 1238, 3949, 3742, 32380, 93511, 28021, 129933, 67, 1505, 5337, 71232, 25632, 63847, 18151, 43240, 33306, 375, 5974, 1528, 18499, 26008, 135179, 4865, 73659, 2685...
[ 0.212646484375, 0.1287841796875, 0.099609375, 0.1702880859375, 0.1419677734375, 0.2257080078125, 0.252197265625, 0.14599609375, 0.1531982421875, 0.1484375, 0.0804443359375, 0.1112060546875, 0.07373046875, 0.11279296875, 0.0281829833984375, 0.1170654296875, 0.187744140625, 0.0232238...
embed
29105672_c0
29105672
fsharp
0
Title: Do Array2Ds print incorrectly in F#? Problem title: Do Array2Ds print incorrectly in F#? Tags: f%23 Problem: Do Array2Ds print incorrectly in F#? I execute the following, expecting to see 3 rows and 4 columns: let my2DArray = Array2D.init 3 4 (fun x y -> (x,y)) But when I run this in the interactive window, the ...
Do Array2Ds print incorrectly in F#? Do Array2Ds print incorrectly in F#? f%23 Array2Ds my2DArray Array2D.init Do Array2Ds print incorrectly in F#? I execute the following, expecting to see 3 rows and 4 columns: But when I run this in the interactive window, the output is: Aren't the rows and columns transposed? I woul...
[ 0.0020904541015625, 0.00994873046875, 0.0016632080078125, 0.0020599365234375, -0.01177978515625, 0.004364013671875, -0.0069580078125, -0.00555419921875, -0.010009765625, 0.04052734375, 0.01904296875, 0.0244140625, 0.006195068359375, 0.00225830078125, -0.00958251953125, -0.009033203125,...
[ 69253, 53, 304, 397, 7, 28412, 214552, 23, 563, 4904, 984, 538, 1238, 3742, 759, 7092, 73, 217, 71924, 41206, 1957, 138, 15555, 136, 201, 3365, 316, 11675, 212398, 76896, 140992, 3900, 144429, 186, 17262, 22759, 43240, 84751, 98323, 44691...
[ 0.167724609375, 0.1314697265625, 0.1632080078125, 0.1309814453125, 0.028961181640625, 0.1751708984375, 0.1676025390625, 0.0452880859375, 0.1263427734375, 0.175048828125, 0.0101318359375, 0.00885009765625, 0.051025390625, 0.0504150390625, 0.08599853515625, 0.144775390625, 0.0204467773...
embed
54739043_c0
54739043
fsharp
0
Title: Why is my F# vector add function using tail recursion not working? Problem title: Why is my F# vector add function using tail recursion not working? Tags: recursion, vector, f%23 Problem: Why is my F# vector add function using tail recursion not working? I cannot get this to work in F#. I am trying to write a ta...
Why is my F# vector add function using tail recursion not working? Why is my F# vector add function using tail recursion not working? recursion vector f%23 tail Why h1::t1 h2::t2 a::h1 Why is my F# vector add function using tail recursion not working? I cannot get this to work in F#. I am trying to write a tail recursi...
[ -0.003753662109375, 0.0213623046875, -0.006744384765625, 0.0157470703125, 0.01483154296875, -0.00555419921875, -0.0230712890625, -0.0191650390625, -0.0048828125, -0.01458740234375, 0.01806640625, -0.005828857421875, -0.017822265625, 0.01470947265625, 0.01312255859375, -0.0159912109375,...
[ 44084, 83, 759, 563, 4904, 173, 18770, 15190, 32354, 17368, 46741, 195625, 1830, 959, 20697, 1238, 3949, 3742, 1096, 82825, 18, 418, 304, 10, 12, 127, 53418, 4488, 31577, 33022, 5844, 3173, 27875, 198395, 74481, 142424, 18499, 188800, 93774...
[ 0.1068115234375, 0.053009033203125, 0.009552001953125, 0.12646484375, 0.200927734375, 0.1807861328125, 0.175537109375, 0.155517578125, 0.1522216796875, 0.06170654296875, 0.25634765625, 0.201416015625, 0.09765625, 0.1195068359375, 0.143310546875, 0.0960693359375, 0.02276611328125, 0...
embed
34133816_c0
34133816
fsharp
0
Title: Why am I forced to return a typed value for None? Problem title: Why am I forced to return a typed value for None? Tags: f%23 Problem: Why am I forced to return a typed value for None? Why am I forced to return a typed value for None? let getHand = function | Some(card1, card2) -> card1, card2 | None -> // ? In ...
Why am I forced to return a typed value for None? Why am I forced to return a typed value for None? f%23 Why None Some card1 card2 Why am I forced to return a typed value for None? Why am I forced to return a typed value for None? In my case, I want to deal a hand. But it doesn't make sense for me to still deal a hand ...
[ 0.000194549560546875, -0.0166015625, 0.01458740234375, 0.0031890869140625, 0.007293701171875, -0.0106201171875, -0.00860595703125, -0.06103515625, 0.01019287109375, -0.004180908203125, 0.006134033203125, 0.00970458984375, -0.0076904296875, -0.0130615234375, 0.0030364990234375, 0.007049...
[ 44084, 444, 168861, 30646, 10644, 71, 34292, 438, 86, 1238, 3742, 31384, 20596, 304, 100, 3444, 35142, 3535, 10422, 2174, 110, 32316, 1829, 152448, 179635, 103510, 17368, 59102, 4393, 8, 2594, 2806, 55300, 19388, 27140, 16750 ]
[ 0.100341796875, 0.03802490234375, 0.1572265625, 0.1695556640625, 0.2166748046875, 0.107421875, 0.161865234375, 0.10064697265625, 0.1666259765625, 0.017059326171875, 0.082275390625, 0.0079345703125, 0.16162109375, 0.034698486328125, 0.005889892578125, 0.06817626953125, 0.1131591796875...
embed
64186700_c0
64186700
fsharp
0
Title: How to use AKKA in a F# source file (*.fs)? Problem title: How to use AKKA in a F# source file (*.fs)? Tags: akka.net, visual-studio-code, f%23, actor Problem: How to use AKKA in a F# source file (*.fs)? I can use AKKA actors with F# in a .fsx file within Visual Studio Code normally, but when I use them in a .fs...
How to use AKKA in a F# source file (*.fs)? How to use AKKA in a F# source file (*.fs)? akka.net visual-studio-code f%23 actor How AKKA Project Akka.FSharp System Akka.Actor akka.net How to use AKKA in a F# source file (*.fs)? I can use AKKA actors with F# in a .fsx file within Visual Studio Code normally, but when I u...
[ -0.002716064453125, 0.0244140625, 0.0194091796875, -0.0038604736328125, 0.00836181640625, -0.01397705078125, 0.0123291015625, 0.004241943359375, -0.00830078125, -0.01531982421875, 0.01068115234375, -0.00537109375, 0.00958251953125, 0.0244140625, 0.0184326171875, 0.0027618408203125, -...
[ 11249, 47, 4527, 15335, 9425, 23, 563, 4904, 31344, 11435, 5, 17447, 16, 81866, 1179, 21176, 52629, 40899, 1238, 3949, 3742, 39329, 27331, 62, 5515, 36381, 3467, 254, 12353, 284, 18770, 831, 678, 425, 28032, 73372, 22968, 28864, 3638, 538...
[ 0.06878662109375, 0.002471923828125, 0.1658935546875, 0.1717529296875, 0.27001953125, 0.08544921875, 0.1236572265625, 0.2069091796875, 0.2137451171875, 0.1883544921875, 0.040802001953125, 0.2012939453125, 0.00177001953125, 0.1832275390625, 0.1240234375, 0.1251220703125, 0.13403320312...
embed
11766061_c0
11766061
fsharp
0
Title: F# coding style - static vs instance methods Problem title: F# coding style - static vs instance methods Tags: c%23, coding-style, f%23 Problem: F# coding style - static vs instance methods I've noticed that static methods seem more popular in F# than C#. In C#, you'd always add an element to a collection by cal...
F# coding style - static vs instance methods F# coding style - static vs instance methods c%23 coding-style f%23 mySet.Add Set.Add F# coding style - static vs instance methods I've noticed that static methods seem more popular in F# than C#. In C#, you'd always add an element to a collection by calling an instance meth...
[ 0.0166015625, 0.005615234375, 0.03662109375, -0.005096435546875, -0.028564453125, 0.00177764892578125, -0.000560760498046875, -0.004364013671875, 0.000027179718017578125, -0.025634765625, -0.0029296875, 0.0027313232421875, 0.01336669921875, 0.010009765625, 0.0032196044921875, -0.019653...
[ 563, 4904, 552, 6238, 20623, 201939, 20209, 110527, 150624, 3742, 40946, 1238, 759, 294, 126, 4028, 19943, 156672, 48903, 1286, 5700, 23, 3501, 313, 360, 71, 11343, 15190, 12830, 42486, 159029, 55300, 56104, 183234, 3055, 3173, 32233, 27983, ...
[ 0.1636962890625, 0.2171630859375, 0.169677734375, 0.1038818359375, 0.2322998046875, 0.259033203125, 0.1522216796875, 0.276611328125, 0.2344970703125, 0.08294677734375, 0.1953125, 0.083984375, 0.0816650390625, 0.0689697265625, 0.1241455078125, 0.0684814453125, 0.139892578125, 0.0185...
embed
12521841_c0
12521841
fsharp
0
Title: is there any way to simplify this line? Problem title: is there any way to simplify this line? Tags: f%23 Problem: is there any way to simplify this line? if reelID = reelWeights.Count - 1 then Array.fold calc1 (0L,0) reelWeights.[reelID] else Array.fold calc2 (0L,0) reelWeights.[reelID] I tried use pipeline, it...
is there any way to simplify this line? is there any way to simplify this line? f%23 reelWeights.Count Array.fold calc1 calc2 is there any way to simplify this line? I tried use pipeline, it seems to slow down a little bit (not sure why): if I do then it looks nice at the cost of redundantly check conditionion in loops...
[ -0.00933837890625, -0.020263671875, -0.022216796875, -0.0005950927734375, 0.005218505859375, -0.013671875, -0.004486083984375, 0.0078125, 0.01409912109375, -0.0250244140625, -0.000614166259765625, 0.0062255859375, 0.00555419921875, -0.00921630859375, 0.006195068359375, -0.0037994384765...
[ 83, 2685, 2499, 3917, 112892, 18929, 903, 13315, 47, 1238, 3949, 3742, 156735, 12137, 22553, 7, 108210, 69253, 53, 42822, 6510, 238, 418, 304, 37842, 4527, 137158, 2256, 37202, 72803, 7565, 10176, 4785, 33342, 26267, 11034, 35405, 12765, 35...
[ 0.01202392578125, 0.028411865234375, 0.05853271484375, 0.06866455078125, 0.231689453125, 0.1759033203125, 0.0550537109375, 0.1444091796875, 0.01043701171875, 0.0794677734375, 0.0173492431640625, 0.15185546875, 0.2073974609375, 0.105712890625, 0.177978515625, 0.016998291015625, 0.1774...
embed
27275813_c0
27275813
fsharp
0
Title: Can I create a collection of arbitrary types in F#? Problem title: Can I create a collection of arbitrary types in F#? Tags: collections, f%23 Problem: Can I create a collection of arbitrary types in F#? Very simple let x = dict [(1, "Foo"); (2, 4)] doesn't work. So I hoped that this will work. let x:System.Coll...
Can I create a collection of arbitrary types in F#? Can I create a collection of arbitrary types in F#? collections f%23 Can Foo x:System.Collections.Generic.IDictionary System.Object SomeCallToAExternalLibraryReturningArbitraryTypes Can I create a collection of arbitrary types in F#? Very simple doesn't work. So I hop...
[ 0.01263427734375, 0.01129150390625, -0.0157470703125, -0.0108642578125, -0.0208740234375, -0.00028228759765625, -0.01348876953125, -0.01458740234375, -0.006317138671875, -0.0048828125, 0.003021240234375, -0.005401611328125, 0.004669189453125, 0.0020294189453125, 0.0189208984375, -0.000...
[ 4171, 87, 28282, 10, 42486, 111, 61799, 1294, 52895, 23, 563, 4904, 1238, 3742, 9572, 31, 1022, 84293, 78457, 8996, 5256, 135932, 10763, 12353, 75161, 5584, 7763, 31586, 104820, 3701, 987, 3137, 196707, 8781, 4488, 15673, 28219, 9433, 4390,...
[ 0.089599609375, 0.049652099609375, 0.15185546875, 0.06036376953125, 0.218017578125, 0.054718017578125, 0.17041015625, 0.1123046875, 0.219482421875, 0.0548095703125, 0.131591796875, 0.2001953125, 0.04510498046875, 0.068115234375, 0.08837890625, 0.051361083984375, 0.0679931640625, 0....
embed
46857593_c0
46857593
fsharp
0
Title: How to import in F# Problem title: How to import in F# Tags: import, f%23 Problem: How to import in F# I have a file called Parser.fs with module Parser at the top of the file. It compiles. I have another module in the same directory, Main , that looks like this: module Main open Parser let _ = //do stuff I trie...
How to import in F# How to import in F# import f%23 in f How Parser.fs Parser Main Main.fs How to import in F# I have a file called Parser.fs with module Parser at the top of the file. It compiles. I have another module in the same directory, Main , that looks like this: I tried to compile Main.fs with $ fsharpc Main.f...
[ -0.002410888671875, 0.0036468505859375, 0.00101470947265625, 0.01953125, -0.00823974609375, 0.0142822265625, 0.0033721923828125, -0.00830078125, 0.00096893310546875, -0.0169677734375, -0.01708984375, -0.0069580078125, 0.006683349609375, 0.01226806640625, 0.0111083984375, -0.00285339355...
[ 11249, 47, 24927, 23, 563, 4904, 1238, 3949, 3742, 2392, 2189, 17447, 12321, 11435, 5, 88996, 2663, 9969, 1340, 5701, 14364, 33342, 37842, 3650, 89280, 57095, 18499, 210716, 28636, 959, 61924, 32354, 70820, 26866, 49725, 7103, 18, 4488, 205...
[ 0.048858642578125, 0.0087890625, 0.289794921875, 0.0885009765625, 0.1495361328125, 0.2353515625, 0.15185546875, 0.0640869140625, 0.1729736328125, 0.1705322265625, 0.1968994140625, 0.1884765625, 0.1502685546875, 0.12646484375, 0.012054443359375, 0.19921875, 0.0966796875, 0.098999023...
embed
66146314_c0
66146314
fsharp
0
Title: What happens if an exception is thrown during stack unwinding? Problem title: What happens if an exception is thrown during stack unwinding? Tags: vb.net, .net, c%23, clr, f%23 Problem: What happens if an exception is thrown during stack unwinding? When managed code is being executed by a .Net CLR, what happens ...
What happens if an exception is thrown during stack unwinding? What happens if an exception is thrown during stack unwinding? vb.net .net c%23 clr f%23 What vb.net What happens if an exception is thrown during stack unwinding? When managed code is being executed by a .Net CLR, what happens if a second exception is thro...
[ 0.0164794921875, 0.03466796875, -0.0115966796875, 0.00083160400390625, 0.005950927734375, 0.01226806640625, 0.00396728515625, 0.0048828125, 0.0177001953125, -0.00064849853515625, -0.0230712890625, -0.00994873046875, -0.00106048583984375, 0.00043487548828125, 0.0264892578125, 0.00418090...
[ 4865, 96276, 2174, 142, 131527, 104250, 20271, 177261, 51, 50777, 214, 19, 86482, 1179, 3742, 42, 83, 145755, 18151, 71924, 24447, 313, 138535, 2367, 17932, 217982, 11675, 6032, 61475, 42294, 18826, 206, 46389, 9433, 37223, 2806, 22304, 1528,...
[ 0.016998291015625, 0.149169921875, 0.0882568359375, 0.06591796875, 0.265625, 0.199462890625, 0.1209716796875, 0.22021484375, 0.1109619140625, 0.2144775390625, 0.116455078125, 0.029327392578125, 0.1512451171875, 0.1151123046875, 0.0543212890625, 0.083984375, 0.009490966796875, 0.142...
embed
1888451_c0
1888451
fsharp
0
Title: list comprehension in F# Problem title: list comprehension in F# Tags: f%23, functional-programming, list, list-comprehension Problem: list comprehension in F# I am trying to do some list comprehension in F#. And I found this . let evens n = { for x in 1 .. n when x % 2 = 0 -> x } print_any (evens 10) let square...
list comprehension in F# list comprehension in F# f%23 functional-programming list list-comprehension print_any vec1 vec2 list comprehension in F# I am trying to do some list comprehension in F#. And I found this . The first still works ok, but the second is outdated. The latest (1.9.7.8) F# compiler does not support t...
[ -0.006927490234375, 0.01007080078125, 0.004425048828125, 0.01190185546875, -0.00616455078125, 0.00494384765625, -0.006591796875, 0.0024871826171875, -0.006103515625, -0.00872802734375, -0.003143310546875, 0.00616455078125, 0.01171875, -0.0263671875, -0.0244140625, 0.0019683837890625, ...
[ 5303, 46683, 3220, 6889, 23, 563, 4904, 1238, 3949, 3742, 123309, 28966, 277, 4692, 28412, 4848, 22834, 418, 304, 31577, 14037, 903, 5117, 7464, 43240, 3664, 17932, 1810, 85, 3674, 42850, 38331, 176391, 9969, 34759, 14602, 959, 8060, 20623,...
[ 0.2379150390625, 0.2056884765625, 0.1998291015625, 0.0836181640625, 0.0390625, 0.1727294921875, 0.22998046875, 0.1021728515625, 0.0228424072265625, 0.1373291015625, 0.1788330078125, 0.09375, 0.080322265625, 0.1865234375, 0.197509765625, 0.1307373046875, 0.2142333984375, 0.059082031...
embed
20517216_c0
20517216
fsharp
0
Title: F# how to run several asynchrous tasks and wait for result of first completed? Problem title: F# how to run several asynchrous tasks and wait for result of first completed? Tags: f%23, asynchronous Problem: F# how to run several asynchrous tasks and wait for result of first completed? There are many examples how...
F# how to run several asynchrous tasks and wait for result of first completed? F# how to run several asynchrous tasks and wait for result of first completed? f%23 asynchronous Async.Parallel Async.RunSynchronously Task.WhenAny F# how to run several asynchrous tasks and wait for result of first completed? There are many...
[ -0.003509521484375, 0.0064697265625, 0.00286865234375, -0.00083160400390625, -0.0101318359375, -0.01031494140625, 0.0120849609375, -0.000034332275390625, -0.002197265625, -0.0113525390625, 0.0157470703125, 0.0277099609375, -0.002899169921875, 0.01153564453125, 0.0206298828125, -0.00457...
[ 563, 4904, 3642, 11675, 40368, 10, 12654, 206, 14179, 7, 66211, 40485, 100, 16750, 5117, 140528, 136, 111, 1238, 3949, 3742, 101966, 238, 1229, 163321, 217835, 127, 1900, 9598, 92, 186048, 299, 27781, 71924, 23, 4734, 95103, 6713, 1257, 3...
[ 0.133056640625, 0.197509765625, 0.0643310546875, 0.1573486328125, 0.145263671875, 0.032379150390625, 0.1898193359375, 0.1016845703125, 0.1328125, 0.01251220703125, 0.2099609375, 0.2066650390625, 0.10626220703125, 0.1622314453125, 0.083984375, 0.1591796875, 0.01617431640625, 0.04553...
embed
7110179_c0
7110179
fsharp
0
Title: Pattern matching record types Problem title: Pattern matching record types Tags: .net, pattern-matching, functional-programming, f%23 Problem: Pattern matching record types Let's consider the following Point record type: type Point = { x:int; y:int } I'd like to make a predicate that tells me whether a given Poi...
Pattern matching record types Pattern matching record types .net pattern-matching functional-programming f%23 Pattern Point x:int y:int Pattern matching record types Let's consider the following Point record type: I'd like to make a predicate that tells me whether a given Point is in a valid region. This works, yet I w...
[ -0.0257568359375, 0.01153564453125, -0.00160980224609375, -0.01348876953125, -0.005157470703125, -0.0021820068359375, -0.022216796875, 0.012451171875, 0.01055908203125, 0.010986328125, 0.005859375, -0.004852294921875, 0.0233154296875, -0.016357421875, 0.01519775390625, 0.027099609375, ...
[ 9876, 22766, 14858, 214, 17164, 52895, 5, 1179, 103510, 98753, 123309, 28966, 1238, 3742, 41097, 1022, 12, 4288, 113, 16916, 25632, 10644, 1884, 3249, 1653, 2063, 67, 14192, 163, 36766, 34475, 83, 23, 35604, 10776, 43240, 32195, 30700, 3917...
[ 0.17724609375, 0.1571044921875, 0.249755859375, 0.1007080078125, 0.21240234375, 0.183349609375, 0.00830078125, 0.159423828125, 0.235107421875, 0.2388916015625, 0.1270751953125, 0.102294921875, 0.00347900390625, 0.0489501953125, 0.1912841796875, 0.0516357421875, 0.011138916015625, 0...
embed
4305868_c1
4305868
fsharp
1
app") :> IRepository<Question> let a1 = repo1.All() let repo2 = repo1.Add(new Question("Repository pattern in F#")) let a2 = repo2.All() Ideally I want length of a1 and a2 to be different, but they are the same as they both hit the database. The application works, users can ask their question, but the programmer is lef...
app") :> IRepository<Question> let a1 = repo1.All() let repo2 = repo1.Add(new Question("Repository pattern in F#")) let a2 = repo2.All() Ideally I want length of a1 and a2 to be different, but they are the same as they both hit the database. The application works, users can ask their question, but the programmer is lef...
[ -0.006805419921875, 0.03564453125, -0.00007677078247070312, 0.021484375, -0.0198974609375, 0.0194091796875, -0.0078125, 0.008056640625, 0.0111083984375, -0.045654296875, 0.02685546875, 0.0166015625, -0.000591278076171875, 0.0150146484375, 0.0067138671875, -0.01080322265625, 0.0057678...
[ 4027, 32863, 13, 59111, 1294, 195136, 1830, 2633, 10, 418, 93392, 43512, 304, 284, 4028, 54936, 68185, 4332, 103510, 563, 4904, 5442, 41143, 3444, 140909, 111, 136, 186, 12921, 5701, 15044, 5962, 63399, 38415, 43240, 72095, 831, 26458, 9655...
[ 0.162841796875, 0.1307373046875, 0.109375, 0.211669921875, 0.1402587890625, 0.105712890625, 0.075927734375, 0.033416748046875, 0.0921630859375, 0.07049560546875, 0.20947265625, 0.15087890625, 0.1358642578125, 0.0140533447265625, 0.12841796875, 0.051666259765625, 0.1773681640625, 0....
embed
5457132_c0
5457132
fsharp
0
Title: Debugging values in .NET framework source debugging Problem title: Debugging values in .NET framework source debugging Tags: .net, frameworks, f%23, c%23, debugging Problem: Debugging values in .NET framework source debugging I've enabled .NET framework source debugging in VS2010 (Premium, if it matters), and I ...
Debugging values in .NET framework source debugging Debugging values in .NET framework source debugging .net frameworks f%23 c%23 debugging Debugging NET Debugging values in .NET framework source debugging I've enabled .NET framework source debugging in VS2010 (Premium, if it matters), and I can step through the method...
[ -0.002532958984375, 0.007080078125, -0.002685546875, -0.0025482177734375, -0.0096435546875, 0.0019073486328125, -0.01385498046875, 0.00244140625, -0.004425048828125, 0.01434326171875, -0.00115966796875, 0.005706787109375, 0.009765625, -0.007720947265625, 0.0133056640625, 0.016357421875...
[ 262, 978, 36659, 142424, 23, 17777, 170846, 31344, 8, 1179, 1238, 3742, 225081, 44160, 11436, 19273, 110346, 2174, 26866, 831, 29954, 8305, 150624, 46132, 391, 23708, 2684, 18, 12301, 707, 160, 10932, 756, 2046, 4842, 1119, 60397, 16188, 79...
[ 0.1148681640625, 0.2144775390625, 0.101806640625, 0.21630859375, 0.0266265869140625, 0.1500244140625, 0.1556396484375, 0.1558837890625, 0.125, 0.0841064453125, 0.02459716796875, 0.0753173828125, 0.121826171875, 0.14208984375, 0.19482421875, 0.046630859375, 0.114013671875, 0.0166168...
embed
5576448_c0
5576448
fsharp
0
Title: F# compiler questions Problem title: F# compiler questions Tags: compiler-optimization, f%23 Problem: F# compiler questions A couple questions about the F# compiler 1) what does --noframework do? I compiled with it but I still needed .Net 4.0(I thought maybe it allowed a port to an earlier version?) Does it remo...
F# compiler questions F# compiler questions compiler-optimization f%23 F# compiler questions A couple questions about the F# compiler 1) what does --noframework do? I compiled with it but I still needed .Net 4.0(I thought maybe it allowed a port to an earlier version?) Does it remove an F# dependancy? 2) What optimizat...
[ 0.01055908203125, 0.01031494140625, 0.009765625, 0.004364013671875, -0.00933837890625, -0.00238037109375, -0.007659912109375, -0.01348876953125, 0.000274658203125, 0.01434326171875, -0.006011962890625, -0.0101318359375, 0.00628662109375, -0.0123291015625, -0.00238037109375, 0.004669189...
[ 563, 4904, 9969, 34759, 17582, 100433, 47691, 1238, 3949, 3742, 24941, 1672, 4879, 2367, 14602, 4210, 157, 160328, 18244, 54, 375, 5974, 297, 678, 7464, 44841, 24447, 40401, 17569, 107003, 11469, 11389, 87388, 8, 27308, 87235, 20650, 1328, ...
[ 0.1539306640625, 0.225341796875, 0.17138671875, 0.19140625, 0.138671875, 0.171630859375, 0.0670166015625, 0.08349609375, 0.0113525390625, 0.1142578125, 0.058197021484375, 0.015472412109375, 0.013519287109375, 0.04541015625, 0.05279541015625, 0.113037109375, 0.175537109375, 0.168334...
embed
36533179_c0
36533179
fsharp
0
Title: Why the box here? Problem title: Why the box here? Tags: boxing, f%23 Problem: Why the box here? While browsing StackOverflow I stumbled upon the following answer: https://stackoverflow.com/a/3817367/162694 // ... removed unneeded code /// This type is intended for private use within Singleton only. type private...
Why the box here? Why the box here? boxing f%23 Why Singleton SyncRoot DefaultValue Instance Singleton.instance Why the box here? While browsing StackOverflow I stumbled upon the following answer: https://stackoverflow.com/a/3817367/162694 Can somebody elaborate why the box here is needed?
[ -0.006683349609375, 0.01611328125, 0.0098876953125, -0.0079345703125, -0.0093994140625, 0.01055908203125, 0.003326416015625, 0.0020294189453125, 0.005889892578125, 0.0096435546875, 0.005706787109375, -0.02294921875, -0.001708984375, 0.00250244140625, 0.00897216796875, -0.01141357421875...
[ 44084, 70, 16530, 3688, 214, 3949, 3742, 43609, 1507, 217835, 12724, 818, 262, 1021, 7136, 856, 50770, 116071, 118664, 35166, 121151, 15400, 83, 44841 ]
[ 0.1961669921875, 0.09979248046875, 0.2841796875, 0.2015380859375, 0.103271484375, 0.001800537109375, 0.0867919921875, 0.166748046875, 0.21484375, 0.181640625, 0.1597900390625, 0.1015625, 0.0711669921875, 0.140869140625, 0.04962158203125, 0.06842041015625, 0.104736328125, 0.14025878...
embed
65812038_c0
65812038
fsharp
0
Title: State Machine using immutable Records in F# Problem title: State Machine using immutable Records in F# Tags: fsm, recursion, immutability, f%23 Problem: State Machine using immutable Records in F# I have the following definiition for a State Machine in F#: type MyEvent = Event1 | Event2 | Event3 type MachineStat...
State Machine using immutable Records in F# State Machine using immutable Records in F# fsm recursion immutability f%23 immutable State Machine Records MyEvent Event1 Event2 Event3 MachineState event:comparison Transitions Map Data Default Map.empty state.Transitions.Add StateA StateB StateC Lazy State Machine using im...
[ -0.00775146484375, -0.01458740234375, 0.0001201629638671875, 0.01031494140625, -0.006622314453125, -0.01361083984375, -0.0032958984375, 0.01043701171875, -0.00020885467529296875, -0.01806640625, 0.0145263671875, 0.0223388671875, -0.00250244140625, 0.0196533203125, 0.00311279296875, -0....
[ 22836, 68311, 17368, 566, 561, 22819, 89916, 563, 4904, 23, 1238, 7, 39, 195625, 14311, 3742, 2646, 192134, 36943, 363, 135206, 19732, 24980, 162774, 42719, 1021, 33548, 11341, 62624, 14, 4028, 284, 571, 441, 239, 3285, 13204, 6528, 136, ...
[ 0.2216796875, 0.2369384765625, 0.07427978515625, 0.05877685546875, 0.1348876953125, 0.1368408203125, 0.1951904296875, 0.119873046875, 0.24072265625, 0.0197601318359375, 0.06591796875, 0.03045654296875, 0.1146240234375, 0.1807861328125, 0.1409912109375, 0.08544921875, 0.0694580078125,...
embed
42398940_c0
42398940
fsharp
0
Title: Feeding an array to printfn Problem title: Feeding an array to printfn Tags: f%23, printf Problem: Feeding an array to printfn I'm printing a Tic-Tac-Toe board. I have an array of characters for each cell of the board and a format string for the board. I'm currently doing: let cells = [| 'X'; 'O'; 'X'; 'O'; 'X';...
Feeding an array to printfn Feeding an array to printfn f%23 printf Feeding Feeding an array to printfn I'm printing a Tic-Tac-Toe board. I have an array of characters for each cell of the board and a format string for the board. I'm currently doing: Is there a way to feed the cells array to printfn without explicitly ...
[ -0.0140380859375, -0.00848388671875, 0.01318359375, 0.0166015625, -0.0059814453125, -0.0177001953125, 0.00738525390625, 0.01251220703125, 0.006011962890625, 0.0037078857421875, -0.0032958984375, -0.0130615234375, -0.00347900390625, 0.002197265625, -0.01446533203125, -0.006134033203125,...
[ 124689, 10298, 53, 47, 28412, 14783, 1238, 3949, 3742, 420, 214, 2448, 1916, 133552, 618, 2263, 7763, 13, 45443, 124850, 38750, 9384, 79315, 82424, 3917, 61590, 15490, 143726, 189085, 756, 483, 55769, 191147, 4527, 69253, 42822, 35662 ]
[ 0.2108154296875, 0.179931640625, 0.152099609375, 0.09185791015625, 0.1953125, 0.2100830078125, 0.030426025390625, 0.027496337890625, 0.13671875, 0.1461181640625, 0.0165557861328125, 0.126220703125, 0.0079345703125, 0.116455078125, 0.05328369140625, 0.095703125, 0.144775390625, 0.00...
embed
24001730_c2
24001730
fsharp
2
SharpType.IsRecord, FSharpType.IsUnion, mtype.IsValueType, mtype.IsArray, System.Object, Unexpected, mtype.ToString, Expr.Var, FSharpType.GetRecordFields, Expr.NewRecord, Expr.Lambda, PropertyInfo, Expr.PropertyGet, field.PropertyType, atype.GetElementType, Array.map, otype.GetGenericArguments, Option, FSharpType.GetUn...
SharpType.IsRecord, FSharpType.IsUnion, mtype.IsValueType, mtype.IsArray, System.Object, Unexpected, mtype.ToString, Expr.Var, FSharpType.GetRecordFields, Expr.NewRecord, Expr.Lambda, PropertyInfo, Expr.PropertyGet, field.PropertyType, atype.GetElementType, Array.map, otype.GetGenericArguments, Option, FSharpType.GetUn...
[ -0.01556396484375, 0.00018024444580078125, 0.010009765625, 0.005279541015625, -0.002288818359375, -0.0078125, -0.0150146484375, 0.00115203857421875, 0.014892578125, -0.01031494140625, 0.005126953125, -0.00008821487426757812, -0.00872802734375, -0.0179443359375, 0.003997802734375, 0.004...
[ 197106, 196707, 29598, 4332, 32271, 4, 93774, 3467, 254, 147547, 347, 50986, 856, 50770, 7614, 7092, 12353, 46471, 75161, 992, 83613, 7763, 71713, 214, 60075, 42, 81827, 126, 19388, 46568, 6492, 85, 206984, 93147, 1264, 44457, 19929, 69253, ...
[ 0.253662109375, 0.31005859375, 0.1083984375, 0.0277862548828125, 0.2568359375, 0.011444091796875, 0.08123779296875, 0.18603515625, 0.1414794921875, 0.19482421875, 0.04742431640625, 0.251708984375, 0.0153350830078125, 0.072998046875, 0.0229644775390625, 0.149658203125, 0.1156005859375...
embed
60354230_c1
60354230
fsharp
1
= x.Replace("%s", "{0}") System.String.Format(x,y) #endif Then I end up with a compilation error in the caller: ~/FSharpPlaygroundUse.fs(48,48): Error FS0001: This expression was expected to have type 'obj []' but here has type 'string' (FS0001) I guess I need now to qualify the type of y now, but not sure how to do i...
= x.Replace("%s", "{0}") System.String.Format(x,y) #endif Then I end up with a compilation error in the caller: ~/FSharpPlaygroundUse.fs(48,48): Error FS0001: This expression was expected to have type 'obj []' but here has type 'string' (FS0001) I guess I need now to qualify the type of y now, but not sure how to do i...
[ -0.032470703125, 0.00653076171875, 0.002960205078125, 0.007659912109375, 0.0057373046875, 0.003997802734375, 0.01031494140625, -0.00185394287109375, 0.0118408203125, 0.001190185546875, 0.033447265625, -0.022705078125, -0.0002536773681640625, -0.046630859375, 0.017822265625, -0.02075195...
[ 2203, 1022, 4332, 23935, 3949, 2389, 12353, 71713, 214, 102973, 257, 425, 53, 17215, 420, 3564, 98352, 1363, 18499, 11782, 56, 36381, 3467, 254, 97054, 64330, 1062, 184, 17447, 9285, 72208, 212059, 93774, 188735, 125195, 509, 84751, 10644, ...
[ 0.046356201171875, 0.1019287109375, 0.103759765625, 0.1795654296875, 0.053009033203125, 0.065673828125, 0.0960693359375, 0.1162109375, 0.080810546875, 0.1422119140625, 0.0162353515625, 0.040771484375, 0.1119384765625, 0.026031494140625, 0.03778076171875, 0.0247039794921875, 0.1612548...
embed
69229716_c0
69229716
fsharp
0
Title: Why does this Async F# code not terminate as expected? Problem title: Why does this Async F# code not terminate as expected? Tags: f%23 Problem: Why does this Async F# code not terminate as expected? module Async = let forever = Async.FromContinuations ignore let withTimeout timeout action = async { let! child =...
Why does this Async F# code not terminate as expected? Why does this Async F# code not terminate as expected? f%23 Why Async Async.FromContinuations Async.StartChild Started Async.forever Async.withTimeout Finished Async.RunSynchronously Why does this Async F# code not terminate as expected? Why does this code not term...
[ -0.00058746337890625, 0.0208740234375, -0.00159454345703125, -0.0289306640625, -0.0098876953125, -0.0133056640625, 0.01007080078125, 0.005279541015625, -0.01165771484375, -0.01153564453125, 0.0038299560546875, 0.0299072265625, -0.00958251953125, 0.0189208984375, 0.01904296875, 0.013977...
[ 44084, 14602, 903, 62, 12654, 238, 563, 4904, 18151, 959, 121011, 13, 237, 84751, 1238, 3742, 168407, 100761, 21094, 126597, 102656, 13794, 89700, 814, 70059, 6056, 13316, 164, 163321, 217835, 127, 1900, 79850, 41206, 67229, 7103, 4382, 4432 ...
[ 0.13671875, 0.035064697265625, 0.051361083984375, 0.05706787109375, 0.2098388671875, 0.1083984375, 0.0791015625, 0.1639404296875, 0.1783447265625, 0.1343994140625, 0.1656494140625, 0.09967041015625, 0.069091796875, 0.1273193359375, 0.06329345703125, 0.128662109375, 0.07171630859375, ...
embed
1481957_c0
1481957
fsharp
0
Title: How do I use tryPick to get the first element of a sequence? Problem title: How do I use tryPick to get the first element of a sequence? Tags: seq, f%23 Problem: How do I use tryPick to get the first element of a sequence? I was trying to use Seq.first today, and the compiler says it has been deprecated in favor...
How do I use tryPick to get the first element of a sequence? How do I use tryPick to get the first element of a sequence? seq f%23 How x:seq x.filter Seq.tryPick How do I use tryPick to get the first element of a sequence? I was trying to use Seq.first today, and the compiler says it has been deprecated in favor of Seq...
[ -0.01068115234375, 0.025634765625, 0.0057373046875, 0.0118408203125, -0.0103759765625, 0.00119781494140625, 0.0198974609375, 0.0072021484375, 0.004241943359375, -0.0390625, 0.00628662109375, 0.0289306640625, -0.0162353515625, 0.00836181640625, 0.0164794921875, 0.0020904541015625, 0.0...
[ 11249, 4527, 9790, 683, 41113, 2046, 70, 5117, 12830, 111, 40, 944, 3956, 87, 47, 864, 1238, 3949, 3742, 1022, 184, 120337, 503, 15123, 54, 31577, 5, 13448, 271, 18925, 9969, 34759, 2809, 8, 4692, 4460, 10862, 4027, 25720, 32354, 30646,...
[ 0.068359375, 0.091796875, 0.2279052734375, 0.1829833984375, 0.271484375, 0.1495361328125, 0.002899169921875, 0.2037353515625, 0.2222900390625, 0.052703857421875, 0.0928955078125, 0.17724609375, 0.1497802734375, 0.008514404296875, 0.02288818359375, 0.17529296875, 0.0271148681640625, ...
embed
57553298_c0
57553298
fsharp
0
Title: Dapper and Postgres - print queries Problem title: Dapper and Postgres - print queries Tags: f%23, npgsql, dapper, .net Problem: Dapper and Postgres - print queries I'm using Dapper with Postgres and I would like to log some diagnostics, especially the actual query being run. If I was using SQL Server I'd be doi...
Dapper and Postgres - print queries Dapper and Postgres - print queries f%23 npgsql dapper .net Dapper Postgres SqlConnection connection.StatisticsEnabled connection.RetrieveStatistics NpgsqlConnection Dapper and Postgres - print queries I'm using Dapper with Postgres and I would like to log some diagnostics, especiall...
[ 0.006561279296875, 0.0299072265625, 0.00106048583984375, 0.006439208984375, -0.00396728515625, 0.01507568359375, 0.00714111328125, -0.01116943359375, -0.0146484375, -0.0166015625, 0.02783203125, -0.01202392578125, 0.00970458984375, -0.004180908203125, -0.0283203125, 0.017333984375, -...
[ 930, 8079, 136, 2795, 17562, 28412, 41, 10484, 20, 1238, 3949, 3742, 25037, 9405, 99247, 48, 1179, 235603, 1830, 94878, 135206, 48242, 2886, 3996, 3134, 541, 254, 17368, 678, 1884, 12684, 3060, 52070, 41866, 8561, 1294, 8035, 11675, 4263, ...
[ 0.1561279296875, 0.24658203125, 0.143310546875, 0.126220703125, 0.22900390625, 0.2257080078125, 0.1851806640625, 0.1175537109375, 0.0203399658203125, 0.0743408203125, 0.063720703125, 0.1435546875, 0.1146240234375, 0.1304931640625, 0.1864013671875, 0.1304931640625, 0.126220703125, 0...
embed
55097773_c0
55097773
fsharp
0
Title: F# and Series, How to write a Series.choose? Problem title: F# and Series, How to write a Series.choose? Tags: f%23, deedle Problem: F# and Series, How to write a Series.choose? I have decided to write a Series.choose function, similar to the one we have on Seq and I wanted to know if you think it is the best wa...
F# and Series, How to write a Series.choose? F# and Series, How to write a Series.choose? f%23 deedle Series How Series.choose Series.map Series.values Seq.choose Series.ofValues Series.indexWith Series.keys F# and Series, How to write a Series.choose? I have decided to write a Series.choose function, similar to the on...
[ -0.01025390625, 0.00933837890625, 0.012939453125, -0.006561279296875, -0.0322265625, -0.0299072265625, -0.0213623046875, 0.0031280517578125, -0.00116729736328125, 0.0341796875, -0.00136566162109375, 0.025390625, -0.0035552978515625, -0.00177001953125, 0.0211181640625, 0.019775390625, ...
[ 563, 4904, 136, 64876, 11249, 47, 33022, 10, 5, 3089, 8364, 1238, 3949, 3742, 8, 297, 133, 62346, 27494, 503, 864, 4390, 42272, 21049, 4711, 194583, 19770, 68872, 32354, 21373, 2965, 3917, 442, 7730, 4420 ]
[ 0.111328125, 0.16259765625, 0.10723876953125, 0.242919921875, 0.09295654296875, 0.040740966796875, 0.1966552734375, 0.0787353515625, 0.0960693359375, 0.1466064453125, 0.156494140625, 0.0679931640625, 0.006866455078125, 0.0833740234375, 0.08447265625, 0.1058349609375, 0.123779296875, ...
embed
50124623_c1
50124623
fsharp
1
Does anyone know what this error means? I haven't seen any other instances of this particular error on Google or other SE posts, and it is especially puzzling since it doesn't occur on Windows/.NET Framework 4.7. Not having the interactive window to test code is a massive hindrance for learning, and quite frustrating ...
Does anyone know what this error means? I haven't seen any other instances of this particular error on Google or other SE posts, and it is especially puzzling since it doesn't occur on Windows/.NET Framework 4.7. Not having the interactive window to test code is a massive hindrance for learning, and quite frustrating ...
[ -0.000782012939453125, 0.0172119140625, -0.0123291015625, 0.01275634765625, -0.017822265625, 0.005645751953125, 0.000335693359375, -0.0014190673828125, 0.0091552734375, 0.022216796875, 0.0128173828125, -0.0177001953125, 0.0223388671875, 0.013427734375, 0.01080322265625, 0.0049743652343...
[ 35672, 3714, 2367, 903, 18499, 26950, 110527, 17311, 1815, 6755, 32323, 2638, 13894, 2069, 442, 18, 74918, 3773, 17777, 202220, 201, 53489, 11205, 19441, 212398, 76896, 3034, 18151, 34866, 84459, 52080, 57357, 4527, 30700, 46674, 31, 563, 990...
[ 0.05279541015625, 0.1162109375, 0.109619140625, 0.1383056640625, 0.276123046875, 0.132080078125, 0.08123779296875, 0.08740234375, 0.1322021484375, 0.1243896484375, 0.0223541259765625, 0.026885986328125, 0.04595947265625, 0.0237579345703125, 0.0150604248046875, 0.0234832763671875, 0.0...
embed
56843131_c0
56843131
fsharp
0
Title: F# Units of Measure doesn&#x27;t simplify Problem title: F# Units of Measure doesn&#x27;t simplify Tags: units-of-measurement, simplification, f%23 Problem: F# Units of Measure doesn't simplify Assume such measures are defined: [<Measure>] type kilogram [<Measure>] type kg = kilogram [<Measure>] type s When I de...
F# Units of Measure doesn&#x27;t simplify F# Units of Measure doesn&#x27;t simplify units-of-measurement simplification f%23 Units Measure Type F# Units of Measure doesn't simplify Assume such measures are defined: When I define a binding like this: F# correctly simplifies type of x from float<kg/kilogram> to float . B...
[ 0.01031494140625, 0.0283203125, 0.000240325927734375, -0.004852294921875, -0.00830078125, -0.03125, 0.004608154296875, 0.0001201629638671875, 0.034912109375, 0.046875, -0.02392578125, -0.01336669921875, 0.0191650390625, 0.003875732421875, 0.000286102294921875, 0.017333984375, 0.01770...
[ 563, 4904, 46640, 111, 1215, 11, 56851, 22027, 3768, 18, 112892, 18929, 25072, 4390, 37440, 162365, 1238, 3742, 60457, 66596, 6044, 72350, 7, 61924, 71, 128239, 1884, 26785, 1029, 10644, 1022, 1295, 21917, 257, 8517, 64, 13595, 83814, 47, ...
[ 0.15869140625, 0.265869140625, 0.1927490234375, 0.1114501953125, 0.1038818359375, 0.1221923828125, 0.10577392578125, 0.056884765625, 0.062469482421875, 0.0908203125, 0.2274169921875, 0.118408203125, 0.2174072265625, 0.09222412109375, 0.09307861328125, 0.2333984375, 0.1129150390625, ...
embed
26701347_c0
26701347
fsharp
0
Title: Prime number check Problem title: Prime number check Tags: recursion, primes, f%23, primality-test, functional-programming Problem: Prime number check I'm having some issues with my prime number checker in F#. It doesn't seem to give the right results so I'm guessing I've screwed up the logic somewhere but I can...
Prime number check Prime number check recursion primes f%23 primality-test functional-programming Prime Prime number check I'm having some issues with my prime number checker in F#. It doesn't seem to give the right results so I'm guessing I've screwed up the logic somewhere but I can't figure out where. The implementa...
[ -0.0263671875, 0.009521484375, 0.02978515625, -0.007537841796875, 0.00994873046875, -0.0007171630859375, 0.010498046875, -0.0177001953125, -0.00665283203125, -0.0155029296875, 0.0107421875, 0.006256103515625, -0.0009918212890625, 0.00634765625, -0.0003032684326171875, -0.00110626220703...
[ 56195, 14012, 12765, 195625, 1830, 20809, 1238, 3949, 3742, 29810, 134393, 6954, 123309, 28966, 87, 19441, 37348, 56, 563, 4904, 48903, 7108, 50339, 57767, 214, 229319, 297, 1257, 62775, 174653, 831, 26366, 7440, 208124, 8781, 55042, 13, 100,...
[ 0.21728515625, 0.1820068359375, 0.210693359375, 0.185546875, 0.036834716796875, 0.20068359375, 0.1097412109375, 0.06640625, 0.139892578125, 0.155029296875, 0.093994140625, 0.1497802734375, 0.140625, 0.1031494140625, 0.03009033203125, 0.021240234375, 0.0875244140625, 0.1253662109375...
embed
27411529_c0
27411529
fsharp
0
Title: Struct in NXC and F# Problem title: Struct in NXC and F# Tags: c%2B%2B, c, f%23, nxc, struct Problem: Struct in NXC and F# I have a question: There is such a struct function in NXC: struct colorType { int colorval; unsigned int rawRed; unsigned int rawGreen; unsigned int rawBlue; unsigned int normRed; unsigned i...
Struct in NXC and F# Struct in NXC and F# c%2B%2B c f%23 nxc struct Struct NXC uint16 Struct in NXC and F# I have a question: There is such a struct function in NXC: I have created the same struct in F# like this: But I don't have any idea how to call colorType cubeColor[6*9]; in F#. Could you help me for this case? Th...
[ 0.014892578125, -0.018310546875, -0.01513671875, 0.01263427734375, 0.0024871826171875, 0, 0.0002880096435546875, 0.0108642578125, 0.004547119140625, 0.024658203125, -0.00543212890625, -0.0233154296875, 0.000888824462890625, -0.03662109375, 0.0023345947265625, 0.00701904296875, -0.001...
[ 63667, 15390, 23, 541, 73973, 136, 563, 4904, 501, 167218, 571, 1238, 3742, 653, 425, 238, 36716, 75, 4288, 2485, 9655, 6044, 32354, 75935, 5701, 6, 1884, 903, 87, 6528, 3642, 47, 11782, 10576, 196707, 314, 372, 10625, 1484, 1065, 910, ...
[ 0.2408447265625, 0.1461181640625, 0.0811767578125, 0.1226806640625, 0.2349853515625, 0.119140625, 0.1085205078125, 0.1859130859375, 0.0224151611328125, 0.00677490234375, 0.011444091796875, 0.04180908203125, 0.1015625, 0.0870361328125, 0.128662109375, 0.1044921875, 0.267333984375, 0...
embed
56147183_c1
56147183
fsharp
1
that possible using F# Giraffe? Code signals: logger.LogError, LogLevel.Error, How, Giraffe, Program.fs, Not, Found, Exception, ILogger, ex.Message, IApplicationBuilder, app.UseHealthChecks, PathString, app.ApplicationServices.GetService, IHostingEnvironment, env.IsDevelopment, app.UseDeveloperExceptionPage, app.UseGi...
that possible using F# Giraffe? Code signals: logger.LogError, LogLevel.Error, How, Giraffe, Program.fs, Not, Found, Exception, ILogger, ex.Message, IApplicationBuilder, app.UseHealthChecks, PathString, app.ApplicationServices.GetService, IHostingEnvironment, env.IsDevelopment, app.UseDeveloperExceptionPage, app.UseGi...
[ -0.006927490234375, 0.031982421875, -0.0164794921875, -0.01031494140625, 0.01007080078125, 0.02734375, -0.005401611328125, -0.0167236328125, -0.0018463134765625, -0.01129150390625, 0.01055908203125, -0.01025390625, -0.0005950927734375, 0.0007781982421875, 0.0279541015625, -0.0235595703...
[ 450, 7722, 17368, 563, 4904, 39919, 11, 16670, 32, 28864, 26073, 7, 73088, 42, 113972, 18468, 31611, 13146, 5267, 2601, 11249, 7663, 17447, 11205, 215624, 5443, 63928, 87, 1505, 1119, 6011, 47677, 182867, 121137, 56, 4027, 1062, 184, 177109...
[ 0.1351318359375, 0.2283935546875, 0.15576171875, 0.1644287109375, 0.2186279296875, 0.1939697265625, 0.156005859375, 0.29296875, 0.037750244140625, 0.213623046875, 0.22265625, 0.0146026611328125, 0.14599609375, 0.1005859375, 0.1522216796875, 0.1385498046875, 0.1376953125, 0.12854003...
embed
64734926_c1
64734926
fsharp
1
.10-arm Base Path: /usr/share/dotnet/sdk/3.1.403/ Host (useful for support): Version: 3.1.9 Commit: 774fc3d6a9 .NET Core SDKs installed: 3.1.403 [/usr/share/dotnet/sdk] .NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.9 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.9 [/usr/shar...
.10-arm Base Path: /usr/share/dotnet/sdk/3.1.403/ Host (useful for support): Version: 3.1.9 Commit: 774fc3d6a9 .NET Core SDKs installed: 3.1.403 [/usr/share/dotnet/sdk] .NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.9 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.9 [/usr/shar...
[ -0.007781982421875, 0.0247802734375, -0.0002117156982421875, 0.0162353515625, 0.00145721435546875, -0.0218505859375, -0.004486083984375, -0.019287109375, -0.013427734375, 0.030517578125, -0.0235595703125, 0.00130462646484375, -0.01123046875, 0.03759765625, 0.00372314453125, 0.003768920...
[ 6, 5, 963, 9, 56859, 44978, 108421, 12, 248, 223, 42, 67886, 15464, 1179, 7, 5740, 18113, 22892, 2839, 40061, 100932, 15, 4032, 7844, 100, 8060, 2077, 40647, 1031, 158304, 3288, 4007, 170665, 1126, 17777, 31365, 159, 45461, 20600, 297, ...
[ 0.011077880859375, 0.1224365234375, 0.262451171875, 0.0958251953125, 0.251953125, 0.229736328125, 0.2164306640625, 0.0196685791015625, 0.008941650390625, 0.01300048828125, 0.01239013671875, 0.0728759765625, 0.1341552734375, 0.2215576171875, 0.0374755859375, 0.138671875, 0.08618164062...
embed
35374078_c0
35374078
fsharp
0
Title: F# Charting No Automatic Axis Range Setting? Problem title: F# Charting No Automatic Axis Range Setting? Tags: f%23, fsharpchart Problem: F# Charting No Automatic Axis Range Setting? It's not really an issue, more of a question. I am using FSharp.Charting to graph a few quick things. One thing I noticed is that ...
F# Charting No Automatic Axis Range Setting? F# Charting No Automatic Axis Range Setting? f%23 fsharpchart Charting Automatic Axis Range Setting F# Charting No Automatic Axis Range Setting? It's not really an issue, more of a question. I am using FSharp.Charting to graph a few quick things. One thing I noticed is that ...
[ -0.006134033203125, 0.0118408203125, 0.021240234375, -0.0235595703125, 0.0059814453125, 0.019775390625, -0.0076904296875, 0.0028839111328125, -0.01007080078125, 0.04638671875, 0.0048828125, -0.000293731689453125, -0.0233154296875, -0.007781982421875, 0.0267333984375, 0.01043701171875, ...
[ 563, 4904, 110373, 214, 438, 51719, 62, 33102, 142462, 503, 1238, 3742, 89280, 254, 9254, 18, 19514, 31089, 17368, 93774, 3467, 5, 84068, 1916, 41382, 63773, 156672, 116287, 22027, 191082, 5423, 10, 17475, 100, 5303, 101935, 142424, 17721, ...
[ 0.12158203125, 0.21337890625, 0.2193603515625, 0.042205810546875, 0.13232421875, 0.167236328125, 0.053955078125, 0.193359375, 0.1839599609375, 0.082275390625, 0.05694580078125, 0.057403564453125, 0.1090087890625, 0.161865234375, 0.148681640625, 0.047637939453125, 0.029083251953125, ...
embed
28319770_c0
28319770
fsharp
0
Title: type inference removing a seq&lt;&#x27;T&gt; for an obj Problem title: type inference removing a seq&lt;&#x27;T&gt; for an obj Tags: f%23 Problem: type inference removing a seq<'T> for an obj Why is f inferred to be of type obj -> int and not seq<'T> -> int ? let fseq (o:'T seq) : int = 0 //val fseq : o:seq<'T> ...
type inference removing a seq&lt;&#x27;T&gt; for an obj type inference removing a seq&lt;&#x27;T&gt; for an obj f%23 o:seq f::a type inference removing a seq<'T> for an obj Why is f inferred to be of type obj -> int and not seq<'T> -> int ? That leads to strange message such as the following later ps : not really a pro...
[ 0.0172119140625, 0.005401611328125, 0.000843048095703125, 0.0147705078125, 0.0014190673828125, -0.038330078125, -0.00982666015625, 0.0322265625, -0.0001983642578125, -0.005828857421875, 0.00335693359375, 0.009033203125, 0.00860595703125, -0.00128173828125, 0.01446533203125, -0.02209472...
[ 10644, 53498, 6620, 49146, 40, 864, 3768, 618, 5386, 995, 170, 1238, 3742, 36, 184, 12, 11, 6496, 44084, 2822, 186, 111, 33079, 23, 18, 959, 37105, 114453, 26008, 25632, 14432, 10, 11343, 17475, 83, 32233, 113138, 89280, 254, 149016, 15...
[ 0.2279052734375, 0.2193603515625, 0.0845947265625, 0.1229248046875, 0.0704345703125, 0.1502685546875, 0.034698486328125, 0.07196044921875, 0.012481689453125, 0.1484375, 0.2109375, 0.1484375, 0.07666015625, 0.09613037109375, 0.061126708984375, 0.013519287109375, 0.03167724609375, 0....
embed
29794935_c0
29794935
fsharp
0
Title: Can F# JSON type provider use units of measures? Problem title: Can F# JSON type provider use units of measures? Tags: units-of-measurement, type-providers, json, f%23 Problem: Can F# JSON type provider use units of measures? I am using F# JSON type provider to parse structures that contain data about radio and ...
Can F# JSON type provider use units of measures? Can F# JSON type provider use units of measures? units-of-measurement type-providers json f%23 Can JSON Can F# JSON type provider use units of measures? I am using F# JSON type provider to parse structures that contain data about radio and TV programs. The data may come ...
[ -0.008544921875, 0.032470703125, 0.00567626953125, 0.01165771484375, -0.0194091796875, 0.0020294189453125, 0.00160980224609375, 0.0235595703125, 0.01519775390625, 0.00125885009765625, -0.0181884765625, 0.0022125244140625, 0.0306396484375, -0.01409912109375, 0.016845703125, 0.0098266601...
[ 4171, 563, 4904, 821, 58627, 10644, 81450, 4527, 25072, 7, 111, 72350, 4390, 37440, 56851, 93136, 14202, 1647, 1681, 1238, 3742, 17368, 366, 184, 45646, 70541, 2053, 5977, 1910, 103391, 1543, 12921, 97264, 5527, 4677, 36510, 2674, 94131, 80...
[ 0.1051025390625, 0.1373291015625, 0.194580078125, 0.159912109375, 0.2169189453125, 0.1527099609375, 0.21044921875, 0.130859375, 0.203857421875, 0.067138671875, 0.09466552734375, 0.2041015625, 0.1097412109375, 0.1102294921875, 0.114501953125, 0.1370849609375, 0.0130615234375, 0.1202...
embed
50776674_c2
50776674
fsharp
2
00 ... ... 2080 ms, cc0=157, cc1=0, cc2=0, result=2601L The imperative solution is the faster and LINQ begin a pull data pipeline is the Code signals: System, How, Receiver, Stream, Map, Func, TrivialStream.range, TrivialStream.map, int64, TrivialStream.filter, TrivialStream.sum, Range, Filter, Sum, Running, cc0, cc1, ...
00 ... ... 2080 ms, cc0=157, cc1=0, cc2=0, result=2601L The imperative solution is the faster and LINQ begin a pull data pipeline is the Code signals: System, How, Receiver, Stream, Map, Func, TrivialStream.range, TrivialStream.map, int64, TrivialStream.filter, TrivialStream.sum, Range, Filter, Sum, Running, cc0, cc1, ...
[ -0.027587890625, 0.01214599609375, -0.002593994140625, 0.0004634857177734375, -0.0014190673828125, 0.0203857421875, -0.0035400390625, 0.00060272216796875, 0.0208740234375, -0.038818359375, 0.001556396484375, 0.0230712890625, -0.00179290771484375, 0.0091552734375, 0.0257568359375, 0.003...
[ 7227, 153, 387, 4836, 68163, 10060, 2389, 145445, 418, 145407, 304, 16750, 55257, 139024, 866, 581, 222530, 13, 29806, 83, 70, 4271, 56, 136, 46610, 2737, 9842, 10, 50065, 2053, 137158, 2256, 28864, 26073, 7, 12, 12353, 11249, 93908, 14, ...
[ 0.13916015625, 0.04571533203125, 0.10321044921875, 0.228759765625, 0.20849609375, 0.0904541015625, 0.11962890625, 0.16162109375, 0.0281219482421875, 0.1102294921875, 0.0943603515625, 0.156982421875, 0.062255859375, 0.2047119140625, 0.1845703125, 0.00665283203125, 0.272216796875, 0....
embed
30791925_c0
30791925
fsharp
0
Title: interpreting a script through F# Problem title: interpreting a script through F# Tags: scripting, interpreted-language, f%23 Problem: interpreting a script through F# I really like F# but I feel like it's not succint and short enough. I want to go further. I do have an idea of how I'd like to improve it but I ha...
interpreting a script through F# interpreting a script through F# scripting interpreted-language f%23 interpreting a script through F# I really like F# but I feel like it's not succint and short enough. I want to go further. I do have an idea of how I'd like to improve it but I have no experience in making compilers so...
[ 0.0036163330078125, -0.00909423828125, -0.0076904296875, 0.01263427734375, -0.003448486328125, -0.00927734375, 0.00811767578125, -0.0185546875, -0.00191497802734375, -0.05078125, -0.00567626953125, 0.0294189453125, -0.0179443359375, -0.0045166015625, 0.000301361083984375, -0.0045471191...
[ 29481, 26499, 8305, 563, 4904, 214, 297, 196651, 1238, 3949, 3742, 6183, 1884, 12319, 442, 959, 45740, 660, 16610, 20174, 3444, 53333, 6528, 52295, 16981, 9969, 34759, 17569, 87, 46876, 185171, 5809, 3249, 17368, 7464, 2046, 3555, 23718, 23...
[ 0.23486328125, 0.2294921875, 0.110595703125, 0.17822265625, 0.247802734375, 0.0692138671875, 0.0465087890625, 0.1683349609375, 0.0716552734375, 0.009735107421875, 0.07452392578125, 0.046661376953125, 0.1295166015625, 0.0789794921875, 0.0230865478515625, 0.040283203125, 0.065673828125...
embed
64686215_c0
64686215
fsharp
0
Title: how to create a type based on another type Problem title: how to create a type based on another type Tags: f%23 Problem: how to create a type based on another type I've got animals and colors: type Animal = | Cat | Dog | Giraffe type Colors = | Blue | Purple I want to combine the types into a third type, constra...
how to create a type based on another type how to create a type based on another type f%23 Animal Cat Dog Giraffe Colors Blue Purple AnimalColorsAvailable how to create a type based on another type I've got animals and colors: I want to combine the types into a third type, constraining the animals and colors that are a...
[ -0.0059814453125, -0.0009613037109375, -0.026123046875, 0.041259765625, 0.0001888275146484375, -0.01251220703125, -0.030517578125, 0.00921630859375, 0.001251220703125, 0.0018768310546875, 0.00013256072998046875, 0.01434326171875, 0.017578125, 0.00921630859375, -0.022216796875, 0.015258...
[ 3642, 47, 28282, 10644, 35509, 98, 15700, 10, 1238, 3949, 3742, 82821, 18826, 41129, 39919, 16670, 51193, 22928, 16915, 8705, 78457, 25820, 85825, 136, 104988, 3444, 70163, 52895, 3934, 50960, 158, 7, 118862, 19882, 96259, 20949, 903, 18499, ...
[ 0.079345703125, 0.0372314453125, 0.17138671875, 0.265380859375, 0.194091796875, 0.106689453125, 0.1365966796875, 0.0279541015625, 0.0252227783203125, 0.0162811279296875, 0.094482421875, 0.15576171875, 0.1007080078125, 0.0902099609375, 0.003173828125, 0.1439208984375, 0.14794921875, ...
embed
17101329_c1
17101329
fsharp
1
got is val a : seq = [1; 2; 3] val b : seq = [1; 2; 3] val c : bool = true So F# can do structural comparison to sequences too. Edit to reflect to Gene Belitski's answer I have changed the test to [<Test>] member Spec.``fib not exeeding 20 should be 0,1,1,2,3,5,8,13``()= let expected = seq [0;1;1;2;3;5;8;13] let resul...
got is val a : seq = [1; 2; 3] val b : seq = [1; 2; 3] val c : bool = true So F# can do structural comparison to sequences too. Edit to reflect to Gene Belitski's answer I have changed the test to [<Test>] member Spec.``fib not exeeding 20 should be 0,1,1,2,3,5,8,13``()= let expected = seq [0;1;1;2;3;5;8;13] let resul...
[ 0.003936767578125, 0.003936767578125, -0.0164794921875, 0.01055908203125, -0.00677490234375, -0.0191650390625, 0.0018157958984375, 0.00372314453125, 0.0206298828125, 0.00124359130859375, 0.01104736328125, 0.034912109375, 0.0130615234375, 0.035400390625, 0.007110595703125, -0.0140991210...
[ 4163, 83, 3502, 10, 40, 864, 2203, 116, 138, 876, 501, 142484, 29568, 563, 4904, 831, 54, 118990, 141, 225490, 47, 26513, 5170, 98816, 3034, 111337, 32786, 24990, 1029, 275, 959, 97733, 297, 214, 387, 5608, 72966, 133063, 363, 141670, 2...
[ 0.2274169921875, 0.06549072265625, 0.1728515625, 0.04095458984375, 0.1102294921875, 0.20654296875, 0.01287841796875, 0.04608154296875, 0.09478759765625, 0.0791015625, 0.03924560546875, 0.1541748046875, 0.0872802734375, 0.1318359375, 0.2298583984375, 0.0621337890625, 0.0643310546875, ...
embed
30487965_c0
30487965
fsharp
0
Title: loop/recurse until input is valid Problem title: loop/recurse until input is valid Tags: f%23, loops, recursion Problem: loop/recurse until input is valid I`m trying to make some code to keep asking the user until a valid file path or "exit" is input. What I have now: let (|ValidPath|_|) str = if File.Exists str...
loop/recurse until input is valid loop/recurse until input is valid f%23 loops recursion ValidPath File.Exists Some None Path Exit Please Console.ReadLine loop/recurse until input is valid I`m trying to make some code to keep asking the user until a valid file path or "exit" is input. What I have now: The ask function ...
[ -0.0091552734375, -0.01287841796875, 0.0084228515625, 0.01708984375, -0.0023651123046875, 0.014892578125, -0.00885009765625, -0.031005859375, -0.0013427734375, -0.025634765625, 0.0294189453125, 0.0281982421875, -0.0216064453125, 0.047119140625, 0.01336669921875, 0.00128936767578125, ...
[ 40956, 64, 107, 48650, 13, 24189, 107730, 83, 35604, 1238, 3949, 3742, 195625, 1830, 25447, 71, 683, 10519, 42724, 19279, 64370, 31384, 438, 108421, 5443, 217, 30607, 1657, 40777, 31345, 93232, 31577, 18151, 13695, 113292, 38937, 11435, 60875...
[ 0.2230224609375, 0.07244873046875, 0.0863037109375, 0.214111328125, 0.1636962890625, 0.201416015625, 0.22119140625, 0.0496826171875, 0.2142333984375, 0.074951171875, 0.035064697265625, 0.149658203125, 0.2298583984375, 0.049346923828125, 0.15478515625, 0.0325927734375, 0.0525207519531...
embed
12688679_c0
12688679
fsharp
0
Title: Parameterized Discriminated Union in F# Problem title: Parameterized Discriminated Union in F# Tags: f%23, discriminated-union Problem: Parameterized Discriminated Union in F# Possible Duplicate: Typed abstract syntax tree with function application I would like to have the following type t<'a>= | Val of 'a | App...
Parameterized Discriminated Union in F# Parameterized Discriminated Union in F# f%23 discriminated-union Parameterized Discriminated Union Val Apply Apply2 Parameterized Discriminated Union in F# I would like to have the following That is, Apply takes a function and a t, and applies f to the "content" of t . However it...
[ 0.00144195556640625, 0.016845703125, 0.00848388671875, 0.0038604736328125, -0.00537109375, -0.010986328125, -0.013916015625, 0.0087890625, 0.01708984375, -0.0306396484375, 0.0113525390625, -0.0274658203125, 0.007415771484375, 0.005584716796875, 0.006439208984375, -0.0086669921875, 0....
[ 1720, 29089, 29367, 6206, 135421, 3674, 32528, 23, 563, 4904, 1238, 3949, 3742, 55970, 87046, 4769, 5659, 538, 304, 2806, 1884, 765, 25632, 51776, 10, 32354, 136, 808, 4027, 25720, 69246, 111, 33306, 26458, 16093, 11, 275, 238, 2740, 2695...
[ 0.142578125, 0.1702880859375, 0.1136474609375, 0.072998046875, 0.1983642578125, 0.0323486328125, 0.2225341796875, 0.06854248046875, 0.1595458984375, 0.2279052734375, 0.19091796875, 0.01556396484375, 0.1153564453125, 0.17529296875, 0.140869140625, 0.1588134765625, 0.20947265625, 0.2...
embed
6859534_c0
6859534
fsharp
0
Title: How to run a F# script in the context of C# Application Problem title: How to run a F# script in the context of C# Application Tags: f%23, c%23, f%23-scripting Problem: How to run a F# script in the context of C# Application Is it easily possible to run a F# script from within (and in the context) of a C# Applic...
How to run a F# script in the context of C# Application How to run a F# script in the context of C# Application f%23 c%23 f%23-scripting How Application FSharpScriptRunner.RunInContext How to run a F# script in the context of C# Application Is it easily possible to run a F# script from within (and in the context) of a ...
[ 0.012451171875, 0.0162353515625, -0.00469970703125, 0.029052734375, -0.00347900390625, -0.00927734375, 0.00543212890625, -0.0191650390625, -0.003509521484375, -0.043701171875, -0.0030517578125, 0.0126953125, -0.0172119140625, 0.0196533203125, 0.0294189453125, 0.00628662109375, 0.0076...
[ 11249, 47, 11675, 10, 563, 4904, 26499, 23, 43701, 111, 313, 104921, 1238, 3742, 27495, 32032, 214, 93774, 3467, 254, 147845, 163321, 1679, 4153, 11935, 22829, 442, 72546, 7722, 28032, 40294, 73, 29568, 84797, 9433, 71924, 17203, 201939, 10...
[ 0.0963134765625, 0.061767578125, 0.18798828125, 0.042022705078125, 0.17822265625, 0.25, 0.26904296875, 0.10107421875, 0.2724609375, 0.05499267578125, 0.06756591796875, 0.1944580078125, 0.0814208984375, 0.067626953125, 0.040130615234375, 0.128662109375, 0.0199432373046875, 0.0537719...
embed
63147398_c0
63147398
fsharp
0
Title: Easily retrieving value from IHTMLProp Problem title: Easily retrieving value from IHTMLProp Tags: f%23, fable-f%23 Problem: Easily retrieving value from IHTMLProp I'm using Fable.React and want to retrieve some value from an IHTMLProp list . This currently works, but feels a little tedious: let selectInput (att...
Easily retrieving value from IHTMLProp Easily retrieving value from IHTMLProp f%23 fable-f%23 IHTMLProp Easily Fable.React List.map HTMLAttr Value Some None List.choose List.tryHead Easily retrieving value from IHTMLProp I'm using Fable.React and want to retrieve some value from an IHTMLProp list . This currently works...
[ -0.031494140625, -0.00106048583984375, 0.0115966796875, -0.007171630859375, -0.018798828125, -0.0179443359375, -0.00872802734375, 0.0035858154296875, 0.0091552734375, -0.0189208984375, 0.0115966796875, 0.0047607421875, -0.0234375, 0.00067138671875, -0.00872802734375, 0.00860595703125, ...
[ 241, 1544, 538, 456, 97351, 6496, 34292, 1295, 87, 127068, 10752, 254, 1238, 3742, 1071, 2661, 420, 563, 2886, 4332, 47013, 32036, 62346, 19097, 28848, 4448, 190060, 31384, 438, 3089, 8364, 15123, 13025, 712, 17368, 5, 3444, 3996, 3134, 3...
[ 0.043121337890625, 0.177734375, 0.049224853515625, 0.0904541015625, 0.16552734375, 0.053070068359375, 0.22705078125, 0.1552734375, 0.157958984375, 0.26318359375, 0.225341796875, 0.1751708984375, 0.057769775390625, 0.0916748046875, 0.133056640625, 0.1134033203125, 0.0579833984375, 0...
embed
43583417_c0
43583417
fsharp
0
Title: F# Need to rewrite code to not require a mutable variable Problem title: F# Need to rewrite code to not require a mutable variable Tags: f%23, boolean, mutable Problem: F# Need to rewrite code to not require a mutable variable I have finished the project I have been working on but I am wanting to go back and cle...
F# Need to rewrite code to not require a mutable variable F# Need to rewrite code to not require a mutable variable f%23 boolean mutable a Need Seq.head Seq.exists Seq.item F# Need to rewrite code to not require a mutable variable I have finished the project I have been working on but I am wanting to go back and cleanu...
[ -0.01470947265625, 0.031982421875, 0.006866455078125, 0.0107421875, 0.007568359375, 0.01171875, 0.007476806640625, 0.00970458984375, 0.005401611328125, 0.0020294189453125, -0.0024261474609375, 0.0615234375, 0.0255126953125, 0.0211181640625, -0.00860595703125, 0.008544921875, 0.007934...
[ 563, 4904, 52889, 456, 434, 18781, 18151, 47, 959, 64209, 842, 22819, 77336, 1238, 3949, 3742, 337, 31, 34677, 503, 864, 31251, 54376, 217, 195, 122799, 13452, 20697, 3444, 4420, 46622, 2037, 110527, 11814, 70541, 110, 11249, 40059, 30646, ...
[ 0.1165771484375, 0.198486328125, 0.18212890625, 0.14990234375, 0.1385498046875, 0.197021484375, 0.1873779296875, 0.033935546875, 0.13671875, 0.1658935546875, 0.1611328125, 0.20849609375, 0.218994140625, 0.0802001953125, 0.0144500732421875, 0.17236328125, 0.03106689453125, 0.0584716...
embed
8279162_c0
8279162
fsharp
0
Title: How can I merge two lists of dates in F#? Problem title: How can I merge two lists of dates in F#? Tags: f%23 Problem: How can I merge two lists of dates in F#? There are two lists of dates (no assumptions can be made regarding list order) //first list [date_a; date_b; date_c] //second list [date_A; date_B; date...
How can I merge two lists of dates in F#? How can I merge two lists of dates in F#? f%23 How date_a date_b date_c How can I merge two lists of dates in F#? There are two lists of dates (no assumptions can be made regarding list order) I am looking for a function that returns the following as a list of entries: the date...
[ 0.01165771484375, 0.0186767578125, 0.01708984375, 0.016845703125, -0.01470947265625, 0.004486083984375, -0.01434326171875, 0.0189208984375, 0.01904296875, 0.0159912109375, -0.00787353515625, 0.036865234375, 0.0191650390625, 0.0272216796875, -0.0162353515625, -0.00872802734375, -0.012...
[ 11249, 831, 42564, 6626, 5303, 7, 111, 112474, 23, 563, 4904, 1238, 3742, 5622, 11, 275, 238, 87, 12989, 16487, 32354, 30646, 25632, 112820, 83, 36998, 22799, 11001, 108975, 4734, 24145 ]
[ 0.06427001953125, 0.064208984375, 0.233642578125, 0.156494140625, 0.2064208984375, 0.0374755859375, 0.035003662109375, 0.1878662109375, 0.038665771484375, 0.1375732421875, 0.1971435546875, 0.053680419921875, 0.0692138671875, 0.1712646484375, 0.034881591796875, 0.06866455078125, 0.050...
embed
44485027_c1
44485027
fsharp
1
0].geometry.location.lat ...however, this didn't work. I tried it without GetSample(), but didn't get much further. Intellisense showed me things that didn't seem to match the Json at all... Anyone able to advise where I'm going wrong? How do I find the data? More to the point, how do I get Intellisense to help me? I m...
0].geometry.location.lat ...however, this didn't work. I tried it without GetSample(), but didn't get much further. Intellisense showed me things that didn't seem to match the Json at all... Anyone able to advise where I'm going wrong? How do I find the data? More to the point, how do I get Intellisense to help me? I m...
[ -0.0029296875, 0.0294189453125, -0.0034942626953125, 0.00262451171875, -0.0166015625, 0.00335693359375, 0.035400390625, 0.006805419921875, -0.001220703125, -0.03125, 0.00188446044921875, -0.0027923583984375, 0.0034027099609375, -0.0208740234375, 0.0238037109375, -0.00628662109375, -0...
[ 757, 429, 87739, 53, 87632, 2335, 153, 903, 15935, 18, 4488, 37842, 15490, 20779, 5464, 33209, 132, 5045, 53333, 30131, 27077, 184, 8966, 48903, 47, 14858, 821, 1681, 756, 27, 19048, 115992, 7730, 44691, 7413, 70, 2053, 2046, 4358, 145755...
[ 0.08349609375, 0.0733642578125, 0.157958984375, 0.05767822265625, 0.22607421875, 0.2183837890625, 0.0040283203125, 0.0654296875, 0.04437255859375, 0.08642578125, 0.118896484375, 0.038726806640625, 0.0718994140625, 0.1192626953125, 0.1630859375, 0.21826171875, 0.07220458984375, 0.02...
embed
51894384_c0
51894384
fsharp
0
Title: SKI combinator calculus or starship operator in F# Problem title: SKI combinator calculus or starship operator in F# Tags: ml, functional-programming, f%23, calculus Problem: SKI combinator calculus or starship operator in F# Assuming we have two functions: one that has a single parameter, like a partially appli...
SKI combinator calculus or starship operator in F# SKI combinator calculus or starship operator in F# ml functional-programming f%23 calculus SKI plus1 SKI combinator calculus or starship operator in F# Assuming we have two functions: one that has a single parameter, like a partially applied addition: another that expe...
[ 0.00177001953125, 0.036376953125, 0.01434326171875, 0.0025787353515625, -0.004974365234375, -0.00726318359375, -0.000507354736328125, 0.003326416015625, 0.006256103515625, -0.0390625, 0.0135498046875, 0.005035400390625, -0.01019287109375, -0.00106048583984375, -0.003021240234375, -0.01...
[ 39963, 22321, 1290, 44805, 223, 6057, 16070, 39933, 563, 4904, 7115, 123309, 28966, 1238, 3949, 3742, 1001, 418, 66596, 6626, 32354, 11001, 171859, 1884, 2878, 190659, 66044, 15700, 41206, 127664, 831, 5036, 28282, 1022, 177, 56104, 35839, 15...
[ 0.260009765625, 0.2061767578125, 0.09228515625, 0.181640625, 0.109130859375, 0.1004638671875, 0.1861572265625, 0.2041015625, 0.093994140625, 0.1783447265625, 0.07763671875, 0.10723876953125, 0.0828857421875, 0.08355712890625, 0.041839599609375, 0.145751953125, 0.102294921875, 0.024...
embed
31616816_c1
31616816
fsharp
1
What this error means? Do you have any idea where to look for the fix? I have no idea and still cannot chase the place where it is actually thrown. The stack trace is not useful as it shows the top calling method. In my build output, I have a warning that I have never seen before, but it appears in both Debug and Rele...
What this error means? Do you have any idea where to look for the fix? I have no idea and still cannot chase the place where it is actually thrown. The stack trace is not useful as it shows the top calling method. In my build output, I have a warning that I have never seen before, but it appears in both Debug and Rele...
[ -0.0032958984375, 0.0311279296875, -0.0177001953125, -0.00830078125, -0.0089111328125, -0.00189971923828125, -0.001800537109375, -0.0166015625, 0.005340576171875, -0.01434326171875, 0.004608154296875, -0.00004100799560546875, 0.01385498046875, 0.00012302398681640625, 0.01312255859375, ...
[ 903, 18499, 26950, 6528, 30022, 110, 53418, 1608, 3687, 7440, 442, 20653, 104250, 19, 177261, 144851, 959, 80234, 2663, 159029, 55300, 45367, 140992, 1631, 592, 8306, 51592, 262, 85779, 152590, 169429, 208155, 93774, 5016, 15276, 74918, 2822, ...
[ 0.055328369140625, 0.188720703125, 0.035064697265625, 0.0285491943359375, 0.06365966796875, 0.138916015625, 0.0301513671875, 0.08013916015625, 0.0587158203125, 0.0072021484375, 0.0143280029296875, 0.0229644775390625, 0.1568603515625, 0.04095458984375, 0.150146484375, 0.189208984375, ...
embed
65484567_c0
65484567
fsharp
0
Title: How to print contents of a map in F# Problem title: How to print contents of a map in F# Tags: f%23 Problem: How to print contents of a map in F# I am new to F# and trying to print the contents of a map. The code I have is as follows: let ids = CSVReader.ReadCSVFile(id, true).AsEnumerable() |> Seq.groupBy( fun (...
How to print contents of a map in F# How to print contents of a map in F# f%23 How CSVReader.ReadCSVFile AsEnumerable Seq.groupBy Seq.map Seq.sortBy Seq.head x1:string x2:string x3:int Map.ofSeq How to print contents of a map in F# I am new to F# and trying to print the contents of a map. The code I have is as follows:...
[ 0.013671875, -0.0186767578125, 0.006072998046875, 0.01275634765625, -0.008544921875, 0.0036163330078125, -0.0067138671875, -0.0029449462890625, -0.00775146484375, 0.00885009765625, -0.0140380859375, 0.018310546875, 0.0089111328125, 0.003509521484375, 0.0169677734375, -0.009521484375, ...
[ 11249, 47, 28412, 10941, 7, 111, 22288, 23, 563, 4904, 10, 1238, 3742, 313, 43486, 31345, 56, 19283, 856, 174350, 1301, 2606, 2886, 503, 864, 51588, 62346, 62351, 31251, 91693, 4288, 42719, 4390, 4233, 3525, 31577, 18151, 16487 ]
[ 0.037109375, 0.029754638671875, 0.22216796875, 0.2108154296875, 0.1123046875, 0.051055908203125, 0.216552734375, 0.055999755859375, 0.138916015625, 0.1995849609375, 0.008514404296875, 0.0513916015625, 0.1103515625, 0.0303802490234375, 0.219482421875, 0.177490234375, 0.04437255859375,...
embed
40010725_c1
40010725
fsharp
1
0 | _ -> (where.Length - where.Replace(what, @"").Length) / what.Length [<EntryPoint>] let main argv = let input = System.Console.ReadLine(); let var = input.Length; Console.WriteLine(var); let show where what = printfn @"countSubstring(""%s"", ""%s"") = %d" where what (countSubstring where what) show input "ACGT" show...
0 | _ -> (where.Length - where.Replace(what, @"").Length) / what.Length [<EntryPoint>] let main argv = let input = System.Console.ReadLine(); let var = input.Length; Console.WriteLine(var); let show where what = printfn @"countSubstring(""%s"", ""%s"") = %d" where what (countSubstring where what) show input "ACGT" show...
[ -0.00799560546875, 0.0286865234375, -0.02099609375, 0.0250244140625, 0.004852294921875, 0.01513671875, 0.00970458984375, 0.00830078125, 0.00872802734375, -0.008544921875, -0.02294921875, -0.0076904296875, -0.00970458984375, 0.0194091796875, -0.00372314453125, -0.0050048828125, 0.0178...
[ 757, 58745, 101, 33079, 136913, 5267, 449, 927, 7440, 4332, 23935, 124409, 1374, 248, 2367, 7768, 15123, 147534, 2633, 5201, 79459, 334, 107730, 12353, 40777, 31345, 93232, 285, 5, 1657, 18781, 1961, 7639, 28412, 14783, 71013, 96472, 91693, ...
[ 0.1094970703125, 0.0148162841796875, 0.0618896484375, 0.09466552734375, 0.18359375, 0.0648193359375, 0.139404296875, 0.07958984375, 0.1707763671875, 0.1185302734375, 0.2000732421875, 0.175048828125, 0.11279296875, 0.1158447265625, 0.1778564453125, 0.100341796875, 0.191162109375, 0....
embed
303284_c0
303284
fsharp
0
Title: F#: How do I use Map with a Collection (like Regex Matches)? Problem title: F#: How do I use Map with a Collection (like Regex Matches)? Tags: f%23, dictionary Problem: F#: How do I use Map with a Collection (like Regex Matches)? Soo... F# no longer has IEnumerable.map_with_type... which is the way people were m...
F#: How do I use Map with a Collection (like Regex Matches)? F#: How do I use Map with a Collection (like Regex Matches)? f%23 dictionary How Map Collection Regex Matches urlRegex.Matches www.google.com Match urlMatch.Value List.map F#: How do I use Map with a Collection (like Regex Matches)? Soo... F# no longer has IE...
[ -0.00750732421875, -0.00823974609375, 0.017333984375, -0.0004673004150390625, -0.024169921875, -0.01263427734375, -0.01263427734375, 0.0238037109375, 0.01708984375, -0.0267333984375, -0.00537109375, 0.00087738037109375, 0.00848388671875, -0.00787353515625, 0.02197265625, -0.01208496093...
[ 563, 4904, 12, 11249, 54, 87, 4527, 42719, 678, 10, 68220, 5062, 11678, 3355, 67407, 90, 1238, 3742, 10763, 25002, 54601, 79520, 17007, 59875, 206, 50770, 32036, 62346, 110, 51713, 75536, 2606, 56, 2886, 76228, 50986, 3917, 3395, 291, 267...
[ 0.15185546875, 0.2054443359375, 0.01287841796875, 0.1163330078125, 0.03826904296875, 0.0638427734375, 0.1630859375, 0.270751953125, 0.2003173828125, 0.0919189453125, 0.2138671875, 0.0833740234375, 0.1639404296875, 0.204345703125, 0.181640625, 0.09161376953125, 0.1055908203125, 0.13...
embed
3521706_c0
3521706
fsharp
0
Title: ServiceModel and f# Problem title: ServiceModel and f# Tags: .net, f%23-interactive, f%23 Problem: ServiceModel and f# I am just starting with f# so the question may seem easy for some of you. so, I am trying to use SyndicationFeed which is located in System.ServiceModel.Syndication namespace. I added following ...
ServiceModel and f# ServiceModel and f# .net f%23-interactive f%23 ServiceModel ServiceModel and f# I am just starting with f# so the question may seem easy for some of you. so, I am trying to use SyndicationFeed which is located in System.ServiceModel.Syndication namespace. I added following references: System.Service...
[ -0.01025390625, 0.000339508056640625, 0.0159912109375, 0.01092529296875, 0.001129150390625, 0.004852294921875, 0.00958251953125, 0.003936767578125, 0.008056640625, -0.04345703125, -0.0142822265625, 0.004547119140625, 0.0115966796875, 0.0140380859375, 0.029296875, -0.000762939453125, ...
[ 12349, 140290, 136, 1238, 4904, 1179, 27495, 10433, 71232, 3742, 72134, 23468, 31577, 4527, 19010, 18601, 30154, 297, 105866, 12353, 121979, 65183, 4607, 120639, 210716, 49814, 91067, 30474, 13452, 45367, 65771, 101089, 919, 212398, 76896, 18499,...
[ 0.18603515625, 0.29296875, 0.0111083984375, 0.10791015625, 0.2025146484375, 0.1021728515625, 0.0748291015625, 0.0830078125, 0.0672607421875, 0.0771484375, 0.0184326171875, 0.0306549072265625, 0.0216827392578125, 0.0178985595703125, 0.09796142578125, 0.1220703125, 0.21923828125, 0.1...
embed
31288250_c0
31288250
fsharp
0
Title: returning variables F#(canopy) easiest way Problem title: returning variables F#(canopy) easiest way Tags: web-testing, f%23, canopy-web-testing Problem: returning variables F#(canopy) easiest way member x.Logovani(window : string) = let weburl = ref "" let actwindow = ref "" "Login" &&& fun _ -> browser.SwitchT...
returning variables F#(canopy) easiest way returning variables F#(canopy) easiest way web-testing f%23 canopy-web-testing x.Logovani Login browser.SwitchTo Window browser.CurrentWindowHandle Logovani returning variables F#(canopy) easiest way Hello my question is how to pass weburl and actwindow easiest way, because th...
[ -0.01806640625, 0.0223388671875, -0.036376953125, 0.01251220703125, 0.007049560546875, -0.01239013671875, 0.00067901611328125, -0.006561279296875, -0.00811767578125, -0.054931640625, 0.0177001953125, 0.0169677734375, 0.005584716796875, 0.006256103515625, 0.0235595703125, -0.00168609619...
[ 30646, 214, 77336, 563, 4904, 38938, 6493, 28, 1544, 525, 3917, 1467, 6954, 1238, 3742, 831, 2146, 53, 14051, 113972, 2914, 93, 122986, 31842, 131519, 7763, 176501, 24293, 135679, 36684, 32624, 7, 35378, 3642, 27875, 25002, 136, 27992, 9494...
[ 0.19580078125, 0.040863037109375, 0.234619140625, 0.0706787109375, 0.1602783203125, 0.1435546875, 0.16748046875, 0.0194244384765625, 0.125732421875, 0.08050537109375, 0.07281494140625, 0.0986328125, 0.1341552734375, 0.0284576416015625, 0.095947265625, 0.039306640625, 0.0943603515625,...
embed
29382900_c0
29382900
fsharp
0
Title: How to get working variables out of a function in F# Problem title: How to get working variables out of a function in F# Tags: function, local-variables, f%23 Problem: How to get working variables out of a function in F# I have a function in F# , like: let MyFunction x = let workingVariable1 = x + 1 let workingV...
How to get working variables out of a function in F# How to get working variables out of a function in F# function local-variables f%23 How MyFunction workingVariable1 workingVariable2 How to get working variables out of a function in F# I have a function in F# , like: Basically, MyFunction takes an input x and returns...
[ 0.00860595703125, -0.004638671875, -0.002288818359375, 0.0087890625, 0.0128173828125, 0.006561279296875, -0.00823974609375, -0.01806640625, 0.0086669921875, -0.01171875, 0.01007080078125, 0.01129150390625, -0.003570556640625, 0.01611328125, 0.0235595703125, -0.0012969970703125, -0.00...
[ 11249, 47, 2046, 20697, 77336, 7, 1810, 111, 32354, 23, 563, 4904, 4000, 21690, 19736, 1238, 3949, 3742, 2646, 97249, 10763, 81827, 14, 2886, 418, 304, 51776, 107730, 1022, 136, 30646, 113, 74481, 10846, 10433, 12333, 31425, 4488, 5115, 1...
[ 0.071044921875, 0.0217437744140625, 0.1414794921875, 0.23583984375, 0.288330078125, 0.11328125, 0.192626953125, 0.135986328125, 0.2109375, 0.065673828125, 0.1614990234375, 0.2296142578125, 0.1419677734375, 0.170654296875, 0.08563232421875, 0.09637451171875, 0.0635986328125, 0.13732...
embed
47380381_c0
47380381
fsharp
0
Title: I have a list of numbers. I have to make the sum of the digits that are repeated using recursive functions Problem title: I have a list of numbers. I have to make the sum of the digits that are repeated using recursive functions Tags: recursion, f%23 Problem: I have a list of numbers. I have to make the sum of t...
I have a list of numbers. I have to make the sum of the digits that are repeated using recursive functions I have a list of numbers. I have to make the sum of the digits that are repeated using recursive functions recursion f%23 recursive x::y::xs y::xs I have a list of numbers. I have to make the sum of the digits tha...
[ -0.0281982421875, 0.01348876953125, 0.016357421875, 0.017822265625, -0.0036773681640625, 0.01092529296875, -0.00762939453125, 0.0213623046875, 0.0140380859375, -0.0081787109375, -0.0147705078125, 0.000324249267578125, -0.002410888671875, 0.01055908203125, -0.001983642578125, 0.00139617...
[ 765, 5303, 111, 101935, 47, 3249, 10554, 153939, 7, 621, 119140, 297, 17368, 195625, 5844, 32354, 1830, 1238, 3949, 3742, 1022, 53, 425, 113, 87, 450, 18151, 2301, 18, 28219, 15400, 831, 54, 70, 27781, 903, 68252, 74, 418, 304, 363, 6...
[ 0.056854248046875, 0.173095703125, 0.05706787109375, 0.1412353515625, 0.00018310546875, 0.0677490234375, 0.250244140625, 0.197509765625, 0.042755126953125, 0.04852294921875, 0.260009765625, 0.125, 0.09063720703125, 0.2154541015625, 0.1446533203125, 0.1646728515625, 0.074951171875, ...
embed
23771835_c1
23771835
fsharp
1
cache else let newCache = cache.Add(key, value) if newCache.Count > size then return! flush() else return! loop (cache.Add(key, value)) | ForceFlush -> return! flush() } loop Map.empty) member x.AddIfNotExists key value = Add(key,value) |> agent.Post member x.ForceFlush() = agent.Post ForceFlush I have moved the expre...
cache else let newCache = cache.Add(key, value) if newCache.Count > size then return! flush() else return! loop (cache.Add(key, value)) | ForceFlush -> return! flush() } loop Map.empty) member x.AddIfNotExists key value = Add(key,value) |> agent.Post member x.ForceFlush() = agent.Post ForceFlush I have moved the expre...
[ -0.026611328125, 0.026123046875, 0.004852294921875, 0.00139617919921875, -0.0213623046875, -0.0115966796875, -0.00154876708984375, 0.005126953125, 0.02294921875, -0.01025390625, 0.01019287109375, 0.048095703125, 0.0238037109375, 0.00982666015625, 0.039306640625, -0.006622314453125, -...
[ 82365, 37076, 2633, 3525, 441, 46994, 4028, 19770, 34292, 108210, 13267, 30646, 14838, 1495, 40956, 408, 1430, 59591, 5782, 127, 42719, 33548, 32786, 1022, 91306, 122116, 19279, 64370, 22799, 29117, 27494, 23882, 49411, 18537, 329, 919, 109133,...
[ 0.263916015625, 0.14990234375, 0.008758544921875, 0.10162353515625, 0.06463623046875, 0.21533203125, 0.1121826171875, 0.148681640625, 0.16015625, 0.1783447265625, 0.10064697265625, 0.22314453125, 0.2283935546875, 0.1607666015625, 0.149169921875, 0.0673828125, 0.1414794921875, 0.166...
embed
56506478_c0
56506478
fsharp
0
Title: What is the purpose of the F# string concatenation operator ^ Problem title: What is the purpose of the F# string concatenation operator ^ Tags: f%23, .net Problem: What is the purpose of the F# string concatenation operator ^ I was reading through the docs and hit this paragraph There are two ways to concatenat...
What is the purpose of the F# string concatenation operator ^ What is the purpose of the F# string concatenation operator ^ f%23 .net What What is the purpose of the F# string concatenation operator ^ I was reading through the docs and hit this paragraph I bashed it into my linqpad, and it runs ok, but I do get a warni...
[ 0.00970458984375, -0.0125732421875, 0.013916015625, 0.0250244140625, -0.007537841796875, 0.0034027099609375, -0.006927490234375, 0.01470947265625, 0.00811767578125, -0.01336669921875, 0.00130462646484375, -0.0181884765625, -0.000553131103515625, -0.019775390625, -0.030517578125, -0.001...
[ 4865, 83, 70, 60042, 111, 563, 4904, 79315, 158, 4460, 33, 2320, 39933, 13331, 1238, 3742, 1179, 5962, 151268, 4950, 44982, 4299, 127877, 3664, 1631, 592, 300, 425, 121151, 25, 179140, 32354 ]
[ 0.057861328125, 0.062347412109375, 0.0775146484375, 0.1951904296875, 0.06671142578125, 0.1693115234375, 0.2396240234375, 0.2281494140625, 0.0906982421875, 0.1468505859375, 0.1270751953125, 0.032470703125, 0.2279052734375, 0.1695556640625, 0.1156005859375, 0.087158203125, 0.1589355468...
embed
33030792_c0
33030792
fsharp
0
Title: How to implement server-push over websocket in suave? Problem title: How to implement server-push over websocket in suave? Tags: suave, websocket, f%23 Problem: How to implement server-push over websocket in suave? can I write something like this let echo (ws: WebSocket) = fun ctx -> socket { let loop = ref true...
How to implement server-push over websocket in suave? How to implement server-push over websocket in suave? suave websocket f%23 How WebSocket Async.Choose ws.read inbox.Receive Choice1Of2 Ping ws.send Pong Choice2Of2 Text How to implement server-push over websocket in suave? can I write something like this or do I nee...
[ -0.00433349609375, 0.01904296875, -0.0008392333984375, 0.0174560546875, -0.0072021484375, 0.0126953125, -0.00145721435546875, -0.004486083984375, 0.006744384765625, -0.036376953125, 0.01904296875, 0.0277099609375, 0.00982666015625, -0.01470947265625, 0.027587890625, 0.0159912109375, ...
[ 11249, 29479, 10723, 7332, 127, 645, 1467, 991, 27853, 109829, 47, 9, 23, 3742, 4002, 8912, 12654, 238, 107522, 148, 39116, 11728, 181948, 132887, 304, 135668, 39285, 663, 449, 24129, 33022, 143870, 221, 28354, 133244, 12301, 434, 18781 ]
[ 0.049957275390625, 0.1641845703125, 0.1744384765625, 0.1700439453125, 0.1495361328125, 0.12841796875, 0.0985107421875, 0.0888671875, 0.15771484375, 0.259765625, 0.000762939453125, 0.007110595703125, 0.01873779296875, 0.090576171875, 0.0584716796875, 0.0745849609375, 0.1046142578125, ...
embed
33922778_c0
33922778
fsharp
0
Title: Having F# FAKE inject version into project.json of ASP .NET 5 project Problem title: Having F# FAKE inject version into project.json of ASP .NET 5 project Tags: f%23, f%23-3.0, f%23-fake, asp.net-core Problem: Having F# FAKE inject version into project.json of ASP .NET 5 project My team uses F# FAKE scripts for ...
Having F# FAKE inject version into project.json of ASP .NET 5 project Having F# FAKE inject version into project.json of ASP .NET 5 project f%23 f%23-3.0 f%23-fake asp.net-core Having FAKE project.json ASP NET asp.net-core Having F# FAKE inject version into project.json of ASP .NET 5 project My team uses F# FAKE script...
[ -0.034912109375, 0.0302734375, 0.007781982421875, 0.003875732421875, -0.00177764892578125, -0.0260009765625, -0.0208740234375, 0.0205078125, -0.004730224609375, -0.004730224609375, -0.0001926422119140625, 0.014404296875, -0.0008392333984375, 0.013916015625, 0.0172119140625, 0.022705078...
[ 171855, 563, 4904, 119960, 115049, 11389, 3934, 13452, 170, 1681, 147153, 17777, 190, 111, 1238, 3742, 27495, 132265, 1021, 350, 237, 254, 5, 1179, 30854, 7175, 4527, 26499, 6863, 45367, 36880, 756, 2446, 77635, 78684, 6967, 20697, 765, 959...
[ 0.08868408203125, 0.2034912109375, 0.21728515625, 0.236572265625, 0.26123046875, 0.2244873046875, 0.080322265625, 0.1781005859375, 0.110107421875, 0.17236328125, 0.17431640625, 0.1136474609375, 0.1646728515625, 0.0194549560546875, 0.01251220703125, 0.03839111328125, 0.0001220703125, ...
embed
42316594_c1
42316594
fsharp
1
5.0|] val regression : SimpleLinearRegression = y(x) = 1,075x + -0,224999999999998 val sse : float = 1.06875 val intercept : float = -0.225 val slope : float = 1.075 val mse : float = 0.21375 val rmse : float = 0.4623310502 val r2 : float = 0.9153465347 How is that possible that SimpleLinearRegression function works bu...
5.0|] val regression : SimpleLinearRegression = y(x) = 1,075x + -0,224999999999998 val sse : float = 1.06875 val intercept : float = -0.225 val slope : float = 1.075 val mse : float = 0.21375 val rmse : float = 0.4623310502 val r2 : float = 0.9153465347 How is that possible that SimpleLinearRegression function works bu...
[ -0.01068115234375, -0.005859375, 0.0115966796875, 0.02197265625, 0.004058837890625, -0.002593994140625, 0.0016326904296875, -0.006439208984375, 0.01190185546875, 0.0004482269287109375, 0.013427734375, 0.004730224609375, -0.00909423828125, 0.001373291015625, 0.0184326171875, -0.00393676...
[ 103932, 3502, 456, 148448, 60552, 93232, 147, 4332, 2203, 113, 425, 81830, 6873, 997, 23320, 2357, 65040, 158931, 2619, 21917, 16028, 1940, 19462, 133684, 2588, 89059, 184, 9271, 1690, 304, 11249, 7722, 32354, 43240, 1284, 642, 2301, 18, 38...
[ 0.147216796875, 0.2152099609375, 0.1016845703125, 0.291259765625, 0.2021484375, 0.1834716796875, 0.1343994140625, 0.10791015625, 0.0352783203125, 0.1517333984375, 0.1002197265625, 0.0335693359375, 0.2027587890625, 0.0782470703125, 0.04669189453125, 0.099365234375, 0.005279541015625, ...
embed
11873116_c0
11873116
fsharp
0
Title: OCaml, F# successive, cascading let bindings Problem title: OCaml, F# successive, cascading let bindings Tags: ocaml, f%23 Problem: OCaml, F# successive, cascading let bindings It is typical in OCaml or F# to have successive let bindings in the form: let a1 = ... let a2 = ... let a3 = ... let f1 = ... let f2 = ....
OCaml, F# successive, cascading let bindings OCaml, F# successive, cascading let bindings ocaml f%23 OCaml OCaml, F# successive, cascading let bindings It is typical in OCaml or F# to have successive let bindings in the form: In many cases some of these let bindings (e.g. f1 and f2 in the example above) are only used a...
[ 0.01348876953125, 0.0028076171875, -0.009765625, 0.0341796875, 0.0174560546875, 0, -0.01348876953125, 0.004547119140625, 0.004913330078125, 0.01025390625, 0.00037384033203125, 0.010009765625, -0.0177001953125, -0.0023193359375, 0.0260009765625, -0.00994873046875, -0.0284423828125, ...
[ 180, 105272, 141, 563, 4904, 208479, 130391, 6238, 2633, 128239, 9779, 1238, 3742, 222201, 765, 7, 3173, 5941, 50218, 418, 136, 304, 27781, 11814, 237, 33976, 46389, 125195, 32354, 109312, 25632, 959, 91067, 13438, 142424, 160463, 3564, 11509...
[ 0.118408203125, 0.1904296875, 0.189453125, 0.0740966796875, 0.161376953125, 0.2237548828125, 0.1451416015625, 0.05328369140625, 0.2109375, 0.239501953125, 0.1168212890625, 0.08935546875, 0.0921630859375, 0.163330078125, 0.00982666015625, 0.06329345703125, 0.1025390625, 0.0072937011...
embed
36360670_c0
36360670
fsharp
0
Title: SqlProvider query errors with &quot;unrecognized method call&quot; Problem title: SqlProvider query errors with &quot;unrecognized method call&quot; Tags: f%23, fsharp.data.typeproviders, postgresql, type-providers Problem: SqlProvider query errors with "unrecognized method call" Code signals: System.Exception, ...
SqlProvider query errors with &quot;unrecognized method call&quot; SqlProvider query errors with &quot;unrecognized method call&quot; f%23 fsharp.data.typeproviders postgresql type-providers System.Exception SqlProvider db.Public.Timings db.Public.Sensors timing.Transpondercode sensor.Sensorcode Microsoft.FSharp.Linq.R...
[ 0.031494140625, 0.037109375, -0.0032958984375, 0.01171875, -0.0093994140625, -0.01611328125, 0.007110595703125, -0.01806640625, -0.003387451171875, -0.02880859375, -0.00653076171875, -0.0031890869140625, 0.021484375, -0.000762939453125, -0.0087890625, 0.000926971435546875, -0.0147094...
[ 159, 99247, 177997, 62160, 41, 1294, 18499, 678, 309, 107, 115558, 55300, 11782, 1238, 3742, 89280, 254, 10135, 50986, 93136, 1305, 17562, 10644, 12353, 40041, 179947, 152704, 58861, 4970, 5527, 5416, 40899, 43111, 7244, 3467, 44982, 60785, 2...
[ 0.0291290283203125, 0.1973876953125, 0.2249755859375, 0.1529541015625, 0.14208984375, 0.03961181640625, 0.21533203125, 0.0859375, 0.0782470703125, 0.047760009765625, 0.1849365234375, 0.20458984375, 0.1832275390625, 0.0587158203125, 0.1649169921875, 0.11962890625, 0.11572265625, 0.0...
embed
6178947_c0
6178947
fsharp
0
Title: Shared-Exclusive lock implementation for F# Problem title: Shared-Exclusive lock implementation for F# Tags: parallel-processing, multithreading, f%23 Problem: Shared-Exclusive lock implementation for F# I am currently working on an F# project that contains many parallel calculations. As being bound to the trimm...
Shared-Exclusive lock implementation for F# Shared-Exclusive lock implementation for F# parallel-processing multithreading f%23 Shared-Exclusive Shared-Exclusive lock implementation for F# I am currently working on an F# project that contains many parallel calculations. As being bound to the trimmed .Net 4 Silverlight ...
[ -0.00104522705078125, 0.02197265625, 0.0142822265625, -0.0303955078125, -0.0150146484375, -0.0252685546875, -0.002166748046875, 0.0225830078125, 0.0089111328125, -0.01422119140625, 0.0054931640625, 0.031982421875, -0.005615234375, 0.0244140625, 0.022216796875, 0.039794921875, 0.00238...
[ 29790, 71, 19279, 67158, 56776, 208124, 100, 563, 4904, 95103, 63923, 3869, 65847, 1238, 3742, 20697, 13452, 70541, 5941, 74481, 99091, 85247, 24447, 201, 57035, 20016, 202220, 56065, 112793, 53418, 4527, 19882, 116120, 87699, 49570, 36746, 878...
[ 0.1922607421875, 0.07421875, 0.1090087890625, 0.183349609375, 0.2408447265625, 0.17919921875, 0.0062255859375, 0.1295166015625, 0.1982421875, 0.1494140625, 0.0855712890625, 0.0721435546875, 0.107177734375, 0.05859375, 0.083740234375, 0.047515869140625, 0.04364013671875, 0.008544921...
embed
63908413_c0
63908413
fsharp
0
Title: Adding two tuples in F# Problem title: Adding two tuples in F# Tags: f%23, tuples Problem: Adding two tuples in F# Trying to understand tuples in F#.. Current thought process let add tuples a b = let a = (_,_) let b= (_,_) (a+b) this won't work due to "_" being invalid for this case so then I thought to try let ...
Adding two tuples in F# Adding two tuples in F# f%23 tuples Adding Adding two tuples in F# Trying to understand tuples in F#.. Current thought process this won't work due to "_" being invalid for this case so then I thought to try this won't work because c,d,e,&f are not known variables. In java I would traditionally j...
[ 0.0026092529296875, 0.00775146484375, 0.009765625, 0.0211181640625, -0.0040283203125, 0.0145263671875, -0.0224609375, -0.006103515625, 0.00244140625, -0.01190185546875, 0.01080322265625, -0.00002944469451904297, -0.021484375, 0.045166015625, 0.0137939453125, -0.007232666015625, 0.003...
[ 62, 59725, 6626, 370, 99726, 563, 4904, 1238, 3949, 3742, 28219, 114063, 17569, 9433, 4488, 454, 56649, 9790, 501, 71, 13, 1230, 420, 959, 51529, 77336, 79, 330, 89160, 61475, 11814, 4785, 23884, 2633, 10, 1369, 23, 18, 30022, 84751, 16...
[ 0.1002197265625, 0.07928466796875, 0.18798828125, 0.15087890625, 0.2396240234375, 0.1458740234375, 0.1962890625, 0.08819580078125, 0.0594482421875, 0.157958984375, 0.044769287109375, 0.015167236328125, 0.03826904296875, 0.025482177734375, 0.0299072265625, 0.07989501953125, 0.15893554...
embed
41123785_c1
41123785
fsharp
1
(2, -3.6); (2, 0.4); (3, 0.75); (1, 0.8); (0, 0.5); (1, -4.2); (3, -0.25); (1, 2.8); (4, 0.0); (2, 1.4); (3, -1.25); (2, 0.4); (3, 0.75)|] Am I calculating this distance correctly? I suspect not. As I mentioned, I'm looking to determine the correct number of K to use in KMeans clustering. I just thought I'd use the si...
(2, -3.6); (2, 0.4); (3, 0.75); (1, 0.8); (0, 0.5); (1, -4.2); (3, -0.25); (1, 2.8); (4, 0.0); (2, 1.4); (3, -1.25); (2, 0.4); (3, 0.75)|] Am I calculating this distance correctly? I suspect not. As I mentioned, I'm looking to determine the correct number of K to use in KMeans clustering. I just thought I'd use the si...
[ 0.001373291015625, 0.016357421875, 0.0037994384765625, 0.003936767578125, 0.0035858154296875, -0.010009765625, -0.01348876953125, -0.004638671875, 0.0301513671875, 0.0223388671875, -0.00775146484375, -0.0223388671875, -0.0159912109375, -0.01141357421875, -0.00714111328125, 0.0030822753...
[ 4700, 4, 20, 102738, 3142, 6, 121254, 6896, 757, 5, 93815, 74, 2858, 132208, 22085, 81730, 117904, 133684, 758, 82295, 9451, 89678, 48733, 68940, 88942, 58745, 2022, 87, 74481, 1916, 903, 62488, 26785, 538, 92610, 959, 119056, 16487, 83324,...
[ 0.1494140625, 0.032684326171875, 0.1357421875, 0.308349609375, 0.1107177734375, 0.03271484375, 0.259033203125, 0.088623046875, 0.0789794921875, 0.0328369140625, 0.25439453125, 0.08416748046875, 0.0394287109375, 0.1995849609375, 0.07855224609375, 0.1724853515625, 0.1923828125, 0.094...
embed
10181165_c0
10181165
fsharp
0
Title: nested type provider Problem title: nested type provider Tags: type-providers, f%23, nested Problem: nested type provider I have one type provider that connects to the network to retrieve data. And produce (the fiction we call) 'static type' through type providers mechanism. Of course, I might not always be conn...
nested type provider nested type provider type-providers f%23 nested nested type provider I have one type provider that connects to the network to retrieve data. And produce (the fiction we call) 'static type' through type providers mechanism. Of course, I might not always be connected. I might be raging in a private j...
[ -0.015380859375, 0.0107421875, 0.00860595703125, 0.004730224609375, -0.0101318359375, 0.01226806640625, 0.008056640625, -0.01129150390625, 0.0074462890625, -0.044677734375, -0.000797271728515625, -0.011962890625, 0.010009765625, 0.0208740234375, 0.0057373046875, -0.003875732421875, 0...
[ 8512, 71, 10644, 81450, 93136, 14202, 3949, 3742, 765, 1632, 37067, 47, 33120, 3996, 2053, 27489, 127663, 11782, 201939, 191619, 13648, 959, 11343, 162711, 27470, 214, 14375, 55, 18, 99675, 13, 94878, 7565, 35672, 16981, 33976, 16713, 2256, ...
[ 0.2257080078125, 0.0810546875, 0.2362060546875, 0.2454833984375, 0.1669921875, 0.02325439453125, 0.01263427734375, 0.0860595703125, 0.0361328125, 0.058380126953125, 0.143310546875, 0.0538330078125, 0.09014892578125, 0.0555419921875, 0.08447265625, 0.1328125, 0.0953369140625, 0.0136...
embed
68680842_c1
68680842
fsharp
1
, instead of the actual F# source code that is on the referenced project. I noted that this behavior occurs in Visual Studio 2019 (Version 16.10.4) and also Visual Studio 2022 (Version 17.0.0 Preview 2.1) I double checked and I added a Project Reference on the C# Project, making a reference to the F# I need that it goe...
, instead of the actual F# source code that is on the referenced project. I noted that this behavior occurs in Visual Studio 2019 (Version 16.10.4) and also Visual Studio 2022 (Version 17.0.0 Preview 2.1) I double checked and I added a Project Reference on the C# Project, making a reference to the F# I need that it goe...
[ 0.005126953125, 0.042724609375, 0.00634765625, 0.0107421875, 0.01531982421875, -0.004058837890625, -0.01531982421875, -0.0107421875, 0.0069580078125, 0.0048828125, 0.00445556640625, -0.0233154296875, -0.01324462890625, 0.0299072265625, 0.0174560546875, -0.003997802734375, -0.00708007...
[ 6, 4, 64457, 111, 8561, 563, 4904, 31344, 18151, 98, 91067, 71, 13452, 903, 123166, 74918, 73372, 22968, 3640, 178390, 611, 10179, 29557, 72392, 7076, 99929, 22751, 34513, 41929, 12765, 49814, 27331, 215996, 313, 3871, 60899, 1295, 24234, 1...
[ 0.010650634765625, 0.0285797119140625, 0.147705078125, 0.052764892578125, 0.1583251953125, 0.1640625, 0.220703125, 0.1466064453125, 0.1876220703125, 0.03863525390625, 0.2381591796875, 0.059722900390625, 0.1566162109375, 0.051055908203125, 0.1484375, 0.0709228515625, 0.1956787109375, ...
embed
2671491_c1
2671491
fsharp
1
is two fold: is there a more concise way to express this? is there a way to abstract the functionality / expression (fun l -> match l with | LegIsSettled -> false | _ -> true) Such that let itemMatchesPattern pattern item = match item with | pattern -> true | _ -> false such I could write (as I am reusing this design-...
is two fold: is there a more concise way to express this? is there a way to abstract the functionality / expression (fun l -> match l with | LegIsSettled -> false | _ -> true) Such that let itemMatchesPattern pattern item = match item with | pattern -> true | _ -> false such I could write (as I am reusing this design-...
[ -0.01214599609375, -0.0035400390625, 0.000400543212890625, -0.01708984375, -0.0059814453125, -0.0166015625, -0.006439208984375, 0.00433349609375, 0.0281982421875, 0.0115966796875, 0.040771484375, 0.0167236328125, 0.00897216796875, 0.00225830078125, -0.0123291015625, 0.0093994140625, ...
[ 83, 6626, 42822, 318, 36510, 903, 164789, 123309, 2481, 248, 125195, 16498, 96, 14858, 678, 27357, 29598, 294, 4204, 6259, 98320, 101, 29568, 2633, 35735, 79520, 17007, 8335, 3055, 103510, 33022, 4331, 4453, 9709, 46572, 2982, 32036, 54376, ...
[ 0.0867919921875, 0.1865234375, 0.25439453125, 0.0660400390625, 0.08660888671875, 0.0181121826171875, 0.142333984375, 0.14453125, 0.0267486572265625, 0.000244140625, 0.17236328125, 0.12060546875, 0.0843505859375, 0.2001953125, 0.0975341796875, 0.181396484375, 0.1407470703125, 0.0806...
embed
35442144_c0
35442144
fsharp
0
Title: Shadowing and garbage collecting in F# Problem title: Shadowing and garbage collecting in F# Tags: garbage-collection, f%23, shadowing Problem: Shadowing and garbage collecting in F# This is my first time encountering shadowing and there don't seem to be resources specific to my question. If I do the following l...
Shadowing and garbage collecting in F# Shadowing and garbage collecting in F# garbage-collection f%23 shadowing Shadowing Shadowing and garbage collecting in F# This is my first time encountering shadowing and there don't seem to be resources specific to my question. If I do the following Then x will hold the contents ...
[ 0.0262451171875, 0.03271484375, 0.00384521484375, 0.03173828125, 0.00482177734375, 0.000614166259765625, -0.00799560546875, 0.0272216796875, 0.0179443359375, 0.01019287109375, 0.004669189453125, 0.01416015625, 0.005096435546875, 0.0155029296875, 0.0264892578125, 0.00518798828125, 0.0...
[ 132706, 214, 136, 3671, 402, 429, 43799, 563, 4904, 196352, 1238, 3742, 208429, 65514, 25632, 1022, 1221, 16401, 10941, 17932, 5303, 196592, 5117, 959, 191082, 163684, 3564, 70820, 15400, 44084, 2046, 31351, 24145, 566, 561, 22819, 83, 2053, ...
[ 0.215576171875, 0.1085205078125, 0.05609130859375, 0.0653076171875, 0.174072265625, 0.066650390625, 0.14892578125, 0.1148681640625, 0.1729736328125, 0.07965087890625, 0.03729248046875, 0.051605224609375, 0.253662109375, 0.053924560546875, 0.05926513671875, 0.07781982421875, 0.0077514...
embed
37000628_c1
37000628
fsharp
1
return! loop (0) } loop(0) () with |exc -> printfn "%A" exc Agent "A" and "B" are created on same machine but are on different ports. I have observed that, number of records received by agent B are different each time when I execute above setup. Means say If I sent 20000 messages to Agent B, Agent B is actually receiv...
return! loop (0) } loop(0) () with |exc -> printfn "%A" exc Agent "A" and "B" are created on same machine but are on different ports. I have observed that, number of records received by agent B are different each time when I execute above setup. Means say If I sent 20000 messages to Agent B, Agent B is actually receiv...
[ 0.0174560546875, 0.0137939453125, -0.006378173828125, 0.035400390625, 0.004638671875, -0.01544189453125, -0.01324462890625, 0.01263427734375, 0.0220947265625, -0.0081787109375, -0.0126953125, 0.006195068359375, 0.0233154296875, -0.0029296875, 0.030517578125, -0.002105712890625, 0.022...
[ 30646, 38, 40956, 6649, 177609, 58745, 3355, 238, 28412, 14783, 3949, 284, 58, 1119, 54603, 136, 571, 75935, 5701, 36279, 1284, 12921, 11469, 139999, 14012, 115923, 75204, 23882, 335, 12638, 1733, 71924, 36917, 169581, 9325, 116, 28568, 89914...
[ 0.144775390625, 0.039825439453125, 0.1544189453125, 0.1226806640625, 0.1253662109375, 0.04315185546875, 0.10589599609375, 0.1282958984375, 0.1229248046875, 0.16162109375, 0.013916015625, 0.112060546875, 0.0273284912109375, 0.1026611328125, 0.26220703125, 0.043243408203125, 0.14831542...
embed
48929771_c0
48929771
fsharp
0
Title: Prefer XPlot or F# Charting? Problem title: Prefer XPlot or F# Charting? Tags: fslab, f%23, fsharpchart Problem: Prefer XPlot or F# Charting? I am struggling to understand the difference between XPlot and F# Charting. Each is developed in the context of FsLab, each provides an easy way to display various sorts o...
Prefer XPlot or F# Charting? Prefer XPlot or F# Charting? fslab f%23 fsharpchart Prefer XPlot Charting Prefer XPlot or F# Charting? I am struggling to understand the difference between XPlot and F# Charting. Each is developed in the context of FsLab, each provides an easy way to display various sorts of charts. Even th...
[ -0.0026092529296875, -0.0123291015625, 0.01007080078125, 0.010986328125, -0.00133514404296875, -0.008056640625, 0.01239013671875, -0.0257568359375, 0.0091552734375, 0.03857421875, -0.00174713134765625, -0.00823974609375, 0.01129150390625, 0.01708984375, 0.00921630859375, -0.00083923339...
[ 176005, 45005, 12631, 707, 563, 4904, 110373, 214, 32, 1238, 7, 6114, 3742, 89280, 254, 9254, 18, 237875, 28219, 60212, 17721, 136, 98423, 126809, 43701, 97381, 12638, 87344, 23468, 44116, 67842, 12096, 116287, 6002, 86531, 110518, 5701, 3444...
[ 0.1890869140625, 0.16748046875, 0.289306640625, 0.0765380859375, 0.169189453125, 0.21923828125, 0.240966796875, 0.1416015625, 0.0153045654296875, 0.092041015625, 0.0723876953125, 0.20458984375, 0.1251220703125, 0.1129150390625, 0.05841064453125, 0.19091796875, 0.048736572265625, 0....
embed
65169697_c0
65169697
fsharp
0
Title: Read two integers in the same line as tuple in f# Problem title: Read two integers in the same line as tuple in f# Tags: f%23 Problem: Read two integers in the same line as tuple in f# I'm trying to read two integers which are going to be taken as input from the same line. My attempt so far: let separator: char ...
Read two integers in the same line as tuple in f# Read two integers in the same line as tuple in f# f%23 Read Console.ReadLine Split Array.map Convert.ToInt32 Read two integers in the same line as tuple in f# I'm trying to read two integers which are going to be taken as input from the same line. My attempt so far: But...
[ -0.0191650390625, -0.0120849609375, -0.007354736328125, 0.0255126953125, -0.00439453125, 0.026611328125, 0.004913330078125, -0.0069580078125, 0.0027008056640625, -0.02783203125, -0.0016632080078125, 0.0147705078125, -0.0167236328125, 0.0302734375, -0.001251220703125, -0.0155029296875, ...
[ 4764, 6626, 892, 26255, 5701, 13315, 237, 370, 8705, 1238, 4904, 23, 3742, 1657, 40777, 31345, 93232, 46474, 69253, 53, 62346, 11549, 7763, 18, 6460, 31577, 12301, 621, 7730, 39958, 107730, 1295, 81887, 2060, 30646, 62766, 10298, 17203, 116...
[ 0.2008056640625, 0.15771484375, 0.1458740234375, 0.1343994140625, 0.1171875, 0.1705322265625, 0.08843994140625, 0.1358642578125, 0.1982421875, 0.1092529296875, 0.1617431640625, 0.0227508544921875, 0.118408203125, 0.009857177734375, 0.124755859375, 0.1490478515625, 0.1522216796875, ...
embed
19103393_c0
19103393
fsharp
0
Title: What can F# offer for managing nondeterminism? Problem title: What can F# offer for managing nondeterminism? Tags: purely-functional, f%23 Problem: What can F# offer for managing nondeterminism? Using non-deterministic functions is unavoidable in applications that talk to the real world. Making a clear separatio...
What can F# offer for managing nondeterminism? What can F# offer for managing nondeterminism? purely-functional f%23 What What can F# offer for managing nondeterminism? Using non-deterministic functions is unavoidable in applications that talk to the real world. Making a clear separation between deterministic and non-d...
[ -0.01708984375, 0.0118408203125, 0.0257568359375, -0.01031494140625, -0.004547119140625, 0.00555419921875, 0.01214599609375, -0.00921630859375, -0.0113525390625, -0.0255126953125, 0.00433349609375, 0.006103515625, 0.00069427490234375, 0.00750732421875, -0.006561279296875, 0.02185058593...
[ 4865, 831, 563, 4904, 18645, 100, 332, 66398, 351, 112, 30524, 8780, 34166, 538, 137175, 1238, 3949, 3742, 345, 48242, 32354, 965, 532, 2886, 86685, 22120, 2773, 8999, 34735, 37451, 17721, 72694, 136, 5526, 20625, 142508, 1556, 17780, 2667,...
[ 0.007659912109375, 0.0654296875, 0.1473388671875, 0.229736328125, 0.113525390625, 0.03802490234375, 0.103759765625, 0.0927734375, 0.1834716796875, 0.1083984375, 0.197998046875, 0.0975341796875, 0.154541015625, 0.03900146484375, 0.1519775390625, 0.09112548828125, 0.0264129638671875, ...
embed
45636848_c0
45636848
fsharp
0
Title: How to ignore MSB4011 when running dotnet build Problem title: How to ignore MSB4011 when running dotnet build Tags: .net-core, f%23, dotnet-cli Problem: How to ignore MSB4011 when running dotnet build When I run dotnet build I get this warning many times: C:\Program Files\dotnet\sdk\1.0.4\Microsoft.Common.Cross...
How to ignore MSB4011 when running dotnet build How to ignore MSB4011 when running dotnet build .net-core f%23 dotnet-cli will How MSB4011 Program Files Microsoft.Common.CrossTargeting.targets fsproj.proj-info.targets Microsoft.Common.targets How to ignore MSB4011 when running dotnet build When I run dotnet build I get...
[ -0.0208740234375, 0.00531005859375, 0.0167236328125, -0.0030517578125, -0.00555419921875, -0.01226806640625, -0.01434326171875, -0.021240234375, -0.005279541015625, -0.0016021728515625, -0.0014801025390625, -0.00099945068359375, -0.0023956298828125, 0.006378173828125, 0.00091552734375, ...
[ 11249, 47, 124962, 16265, 571, 2839, 1662, 51042, 20633, 1179, 45367, 30854, 1238, 3949, 3742, 150, 1221, 7663, 42724, 7244, 3796, 3666, 63031, 429, 867, 3794, 47606, 897, 7319, 11675, 903, 1631, 592, 5941, 20028, 56282, 6097, 6977, 1295, ...
[ 0.018524169921875, 0.0246734619140625, 0.191650390625, 0.0771484375, 0.1529541015625, 0.16650390625, 0.1871337890625, 0.09112548828125, 0.1292724609375, 0.15625, 0.1490478515625, 0.1182861328125, 0.058990478515625, 0.012908935546875, 0.0889892578125, 0.09130859375, 0.09857177734375, ...
embed
1601688_c0
1601688
fsharp
0
Title: How to access static functions from inside a class member function? Problem title: How to access static functions from inside a class member function? Tags: f%23 Problem: How to access static functions from inside a class member function? I have a unit test class: type [<TestFixture>] BetTests()= [<Test>] member...
How to access static functions from inside a class member function? How to access static functions from inside a class member function? f%23 inside How TestFixture BetTests Test x.HasGoodOddsTest HasGoodOdds Assert.IsFalse Expected How to access static functions from inside a class member function? I have a unit test c...
[ 0.004974365234375, 0.0167236328125, 0.0311279296875, -0.01544189453125, -0.0164794921875, 0.0027008056640625, 0.01055908203125, 0.003692626953125, 0.0034027099609375, -0.026611328125, -0.0093994140625, 0.007537841796875, 0.0159912109375, 0.00860595703125, 0.043212890625, -0.01428222656...
[ 11249, 47, 17203, 201939, 32354, 7, 1295, 46132, 18507, 32786, 1238, 3949, 3742, 8647, 6159, 425, 6644, 6300, 111337, 1022, 6495, 144890, 71115, 6468, 20625, 33657, 17647, 11971, 60075, 13, 25072, 3034, 55300, 61924, 50782, 9969, 34759, 18499...
[ 0.07525634765625, 0.04156494140625, 0.1998291015625, 0.275634765625, 0.23388671875, 0.084228515625, 0.1387939453125, 0.191162109375, 0.1890869140625, 0.194091796875, 0.0672607421875, 0.032196044921875, 0.138916015625, 0.14208984375, 0.06707763671875, 0.0203857421875, 0.04376220703125...
embed
10846513_c0
10846513
fsharp
0
Title: Deleting comments from a file, using Regex Problem title: Deleting comments from a file, using Regex Tags: regex, f%23 Problem: Deleting comments from a file, using Regex I want to write a program that deletes all the comments (starting with "//" until the end of the line) from a file. I want to do it using regu...
Deleting comments from a file, using Regex Deleting comments from a file, using Regex regex f%23 a Regex Deleting File.ReadAllText a.txt regexComment.Replace File.WriteAllText Deleting comments from a file, using Regex I want to write a program that deletes all the comments (starting with "//" until the end of the line...
[ -0.01446533203125, -0.0107421875, -0.0024261474609375, 0.00921630859375, -0.01324462890625, 0.0224609375, 0.0078125, 0.0267333984375, 0.01251220703125, -0.002227783203125, -0.005767822265625, 0.0380859375, 0.009033203125, -0.0037994384765625, 0.004058837890625, -0.0034637451171875, 0...
[ 262, 133, 1916, 24626, 1295, 11435, 17368, 11678, 3355, 6835, 1238, 3949, 3742, 42724, 31345, 43512, 174379, 10, 124326, 10770, 674, 23935, 3444, 33022, 1528, 8, 74635, 756, 70, 17137, 678, 20767, 24189, 3564, 13315, 20324, 125195, 37842, 2...
[ 0.1214599609375, 0.1832275390625, 0.0931396484375, 0.247314453125, 0.15380859375, 0.1793212890625, 0.082763671875, 0.15478515625, 0.2203369140625, 0.1412353515625, 0.047119140625, 0.03289794921875, 0.1334228515625, 0.1505126953125, 0.09619140625, 0.094482421875, 0.1455078125, 0.056...
embed
22236356_c0
22236356
fsharp
0
Title: How to connect azure development storage in f#? Problem title: How to connect azure development storage in f#? Tags: azure-table-storage, azure, f%23 Problem: How to connect azure development storage in f#? At the moment I'm struggling to connect and do operation in f# against the local azure table storage (deve...
How to connect azure development storage in f#? How to connect azure development storage in f#? azure-table-storage azure f%23 How How to connect azure development storage in f#? At the moment I'm struggling to connect and do operation in f# against the local azure table storage (developmentstorage). The only method I ...
[ 0.004364013671875, 0.0147705078125, -0.00299072265625, -0.01519775390625, 0.0028839111328125, 0.00014400482177734375, 0.00634765625, 0.0107421875, -0.005279541015625, -0.025146484375, -0.005462646484375, -0.013427734375, -0.006195068359375, 0.010986328125, 0.0034637451171875, 0.0007362...
[ 11249, 47, 37067, 295, 3408, 34754, 132096, 23, 1238, 4904, 22819, 140464, 429, 3742, 237875, 41018, 26548, 4000, 23180, 229815, 4734, 55300, 678, 5655, 927, 188, 29838, 2822, 80973, 213499, 163612, 15426, 162429, 26946, 9774, 79315, 17368, 3...
[ 0.0787353515625, 0.043548583984375, 0.2061767578125, 0.136474609375, 0.2401123046875, 0.182861328125, 0.2196044921875, 0.06048583984375, 0.1029052734375, 0.21337890625, 0.1365966796875, 0.16015625, 0.066162109375, 0.0672607421875, 0.0877685546875, 0.107666015625, 0.129150390625, 0....
embed
31408765_c1
31408765
fsharp
1
Excel). module Main open ExcelDna.Integration open System open Program open Parser [<ExcelFunction(Description = "")>] let main () = let x = "5 + 2" let lexbuf = Microsoft.FSharp.Text.Lexing.LexBuffer<_>.FromString x let y = input lexer.lang lexbuf y However, when I run this function, the parser doesn't work at all. W...
Excel). module Main open ExcelDna.Integration open System open Program open Parser [<ExcelFunction(Description = "")>] let main () = let x = "5 + 2" let lexbuf = Microsoft.FSharp.Text.Lexing.LexBuffer<_>.FromString x let y = input lexer.lang lexbuf y However, when I run this function, the parser doesn't work at all. W...
[ -0.012451171875, 0.015869140625, -0.01092529296875, 0.0228271484375, -0.01031494140625, 0.0245361328125, 0.017578125, -0.005706787109375, 0.000606536865234375, -0.0400390625, -0.0107421875, 0.0145263671875, 0.0023040771484375, -0.00982666015625, 0.0299072265625, -0.01055908203125, -0...
[ 30326, 194, 88996, 12321, 9803, 397, 76, 67, 177, 12353, 7663, 2392, 2189, 184926, 97249, 10763, 4657, 59478, 2203, 2633, 5201, 1022, 758, 997, 116, 75675, 978, 420, 7244, 36381, 3467, 254, 174379, 5267, 425, 214, 7235, 18234, 168407, 717...
[ 0.248779296875, 0.034698486328125, 0.161376953125, 0.106689453125, 0.0775146484375, 0.0211029052734375, 0.1810302734375, 0.07086181640625, 0.0670166015625, 0.1175537109375, 0.13916015625, 0.1519775390625, 0.251708984375, 0.2086181640625, 0.145263671875, 0.08245849609375, 0.1309814453...
embed
65627076_c0
65627076
fsharp
0
Title: Catch exception in sharp Problem title: Catch exception in sharp Tags: try-catch, f%23, arguments, exception Problem: Catch exception in sharp I have made a program where the user can typ commandos in terminal, but when the user type "quit" there is an exception. How do I catch it? Code below is just a snippet, ...
Catch exception in sharp Catch exception in sharp try-catch f%23 arguments exception Catch System.Console.ReadLine Incorrect Catch exception in sharp I have made a program where the user can typ commandos in terminal, but when the user type "quit" there is an exception. How do I catch it? Code below is just a snippet, ...
[ -0.022216796875, 0.0272216796875, 0.0001583099365234375, -0.010498046875, -0.001251220703125, -0.01202392578125, 0.01214599609375, 0.0032196044921875, -0.01220703125, -0.0036773681640625, -0.0032806396484375, 0.0181884765625, -0.019775390625, 0.01611328125, 0.0177001953125, -0.00090789...
[ 18826, 206, 131527, 23, 189173, 9790, 4460, 1238, 3949, 3742, 10750, 12353, 40777, 31345, 93232, 32399, 7228, 1528, 38937, 831, 11417, 75101, 232, 33949, 10644, 3181, 18, 11249, 105556, 442, 28864, 35064, 18151, 6183, 4989, 39659, 79858, 1328...
[ 0.193115234375, 0.099365234375, 0.25390625, 0.0706787109375, 0.260009765625, 0.1383056640625, 0.144287109375, 0.049652099609375, 0.0572509765625, 0.165771484375, 0.1693115234375, 0.1275634765625, 0.09295654296875, 0.126708984375, 0.126220703125, 0.1279296875, 0.012054443359375, 0.1...
embed
52209453_c0
52209453
fsharp
0
Title: F# : need help reversing order of ilist Problem title: F# : need help reversing order of ilist Tags: list, f%23 Problem: F# : need help reversing order of ilist I must use the following data type: type ilist = E | L of int * ilist I can't seem to find much help on working with lists outside of the standard type ...
F# : need help reversing order of ilist F# : need help reversing order of ilist list f%23 Empty List F# : need help reversing order of ilist I must use the following data type: I can't seem to find much help on working with lists outside of the standard type online ( [1;2;3] ) I am to write a function that takes a list...
[ -0.0111083984375, 0.0216064453125, 0.0238037109375, 0.00811767578125, -0.0167236328125, 0.00811767578125, -0.01324462890625, 0.00543212890625, 0.01177978515625, -0.0064697265625, 0.037353515625, 0.00244140625, -0.006256103515625, 0.006591796875, 0.01708984375, 0.00726318359375, 0.022...
[ 563, 4904, 3871, 4358, 39531, 6953, 12989, 111, 17, 6562, 152, 5303, 1238, 3742, 31678, 939, 32036, 8110, 4527, 25632, 2053, 10644, 20697, 678, 7, 50782, 5570, 1118, 96386, 444, 33022, 32354, 51776, 136, 5908, 27781, 184, 866, 41600, 339,...
[ 0.10009765625, 0.1904296875, 0.10400390625, 0.1419677734375, 0.201904296875, 0.1248779296875, 0.20849609375, 0.100341796875, 0.1143798828125, 0.23046875, 0.00323486328125, 0.1851806640625, 0.081787109375, 0.1204833984375, 0.131103515625, 0.0965576171875, 0.1785888671875, 0.06445312...
embed
26801158_c2
26801158
fsharp
2
.Stopwatch.StartNew, dict.Add, Array.iter, stopWatch.Stop, HashSet, add_hash, hsahes.Add, e.GetHashCode, Array.filter, stopWatch.Elapsed.TotalSeconds, keys.Length, StructTuple, bad_keys, Random, uint32, rnd.Next, uint16, good_keys, CmpHelpers, h1:int, h2:int, StructTupleComparer, EqualityComparer, Object, Default, IEqu...
.Stopwatch.StartNew, dict.Add, Array.iter, stopWatch.Stop, HashSet, add_hash, hsahes.Add, e.GetHashCode, Array.filter, stopWatch.Elapsed.TotalSeconds, keys.Length, StructTuple, bad_keys, Random, uint32, rnd.Next, uint16, good_keys, CmpHelpers, h1:int, h2:int, StructTupleComparer, EqualityComparer, Object, Default, IEqu...
[ -0.0106201171875, 0.01007080078125, -0.0115966796875, -0.00848388671875, 0.0023956298828125, -0.0086669921875, -0.003692626953125, -0.0081787109375, 0.00494384765625, -0.0225830078125, -0.0031280517578125, 0.04345703125, 0.004058837890625, 0.0157470703125, 0.0245361328125, -0.011962890...
[ 5, 156095, 35414, 126597, 46568, 4, 61669, 284, 4028, 69253, 53, 16840, 7279, 156378, 162087, 294, 126, 15190, 126234, 1096, 23474, 90, 28, 724, 6495, 1495, 114211, 120337, 127966, 169473, 4233, 2271, 6468, 22799, 449, 63667, 15390, 15665, ...
[ 0.07794189453125, 0.2359619140625, 0.324462890625, 0.168701171875, 0.172607421875, 0.0231781005859375, 0.1561279296875, 0.0248565673828125, 0.113525390625, 0.109375, 0.0450439453125, 0.153564453125, 0.1788330078125, 0.29052734375, 0.192138671875, 0.1121826171875, 0.1173095703125, 0...
embed
7255457_c0
7255457
fsharp
0
Title: C++ to .NET : I need help with understanding C++ code to convert it to .NET Problem title: C++ to .NET : I need help with understanding C++ code to convert it to .NET Tags: c%23, .net, f%23, c%2B%2B Problem: C++ to .NET : I need help with understanding C++ code to convert it to .NET C++ code is : unsigned short*...
C++ to .NET : I need help with understanding C++ code to convert it to .NET C++ to .NET : I need help with understanding C++ code to convert it to .NET c%23 .net f%23 c%2B%2B NET CountDev System.BitConverter.ToInt32 C++ to .NET : I need help with understanding C++ code to convert it to .NET C++ code is : buf is byte[] ...
[ 0.004180908203125, 0.01348876953125, 0.00189208984375, -0.01324462890625, 0.001373291015625, 0.000720977783203125, -0.0028533935546875, -0.004974365234375, 0.0126953125, -0.00689697265625, -0.00150299072265625, -0.032470703125, 0.005157470703125, -0.00095367431640625, 0.0240478515625, ...
[ 313, 37223, 47, 5, 17777, 87, 3871, 4358, 678, 100094, 18151, 96760, 442, 6, 501, 3742, 1179, 1238, 571, 108210, 152108, 12353, 217, 11935, 814, 720, 7763, 18, 6460, 373, 420, 83, 390, 67, 1065, 51, 31304, 23, 24318, 910, 15612, 34759...
[ 0.1146240234375, 0.323486328125, 0.1629638671875, 0.0933837890625, 0.261962890625, 0.0140228271484375, 0.1033935546875, 0.118896484375, 0.012298583984375, 0.1336669921875, 0.2108154296875, 0.17724609375, 0.0638427734375, 0.02618408203125, 0.0137939453125, 0.0626220703125, 0.203369140...
embed
73871843_c0
73871843
fsharp
0
Title: Removing from a list of a tuples that contains an empty element in the second projection F# Problem title: Removing from a list of a tuples that contains an empty element in the second projection F# Tags: functional-programming, f%23, either Problem: Removing from a list of a tuples that contains an empty elemen...
Removing from a list of a tuples that contains an empty element in the second projection F# Removing from a list of a tuples that contains an empty element in the second projection F# functional-programming f%23 either a Removing List.map Removing from a list of a tuples that contains an empty element in the second pro...
[ -0.01202392578125, 0.0181884765625, -0.004730224609375, 0.00360107421875, -0.006011962890625, -0.0172119140625, -0.0242919921875, -0.0008392333984375, 0.0179443359375, 0.0286865234375, 0.0233154296875, 0.00750732421875, -0.0235595703125, 0.00201416015625, -0.0035247802734375, 0.0064086...
[ 432, 6496, 1295, 5303, 370, 99726, 70541, 201505, 12830, 17932, 13452, 563, 4904, 450, 7, 70, 123309, 28966, 1238, 3742, 32036, 62346, 142, 1830, 30698, 7108, 103510, 14858, 214, 1342, 481, 52895, 56656, 140992 ]
[ 0.12255859375, 0.0518798828125, 0.09375, 0.148193359375, 0.10015869140625, 0.1912841796875, 0.0677490234375, 0.1759033203125, 0.1439208984375, 0.1256103515625, 0.1239013671875, 0.04766845703125, 0.099609375, 0.002960205078125, 0.011993408203125, 0.02105712890625, 0.09344482421875, ...
embed
25850971_c0
25850971
fsharp
0
Title: Websharper : Using LI tags Problem title: Websharper : Using LI tags Tags: websharper, f%23 Problem: Websharper : Using LI tags I want to create something like that : <ul> <li>menu1 <ul> <li>sub-menu1</li> </ul> </li> <li>menu2</li> </ul> So i write the following code using WebSharper : let el = UL [ LI [ Text "...
Websharper : Using LI tags Websharper : Using LI tags websharper f%23 Websharper Using menu1 sub-menu1 menu2 Text IPagelet Element Websharper : Using LI tags I want to create something like that : So i write the following code using WebSharper : But it says that should have the type IPagelet but currently have the type...
[ -0.02197265625, 0.005828857421875, -0.0033416748046875, -0.00823974609375, 0.00799560546875, -0.0004444122314453125, -0.0140380859375, -0.01220703125, 0.001373291015625, -0.04931640625, 0.01080322265625, -0.0101318359375, 0.0030517578125, 0.006561279296875, 0.0206298828125, 0.008422851...
[ 4002, 89280, 1264, 345, 6953, 16970, 69141, 1467, 1238, 3949, 3742, 8026, 418, 1614, 30144, 304, 24129, 87, 147101, 1974, 48325, 3444, 28282, 9844, 1884, 450, 33022, 25632, 18151, 17368, 294, 3467, 5608, 10644, 1284, 82424, 35672, 6528, 364...
[ 0.146240234375, 0.193359375, 0.2093505859375, 0.07037353515625, 0.022979736328125, 0.172607421875, 0.196533203125, 0.101318359375, 0.001434326171875, 0.008514404296875, 0.088134765625, 0.15283203125, 0.010986328125, 0.1165771484375, 0.1632080078125, 0.030059814453125, 0.1773681640625...
embed
36656131_c0
36656131
fsharp
0
Title: Adding new member to CsvProvider type in F# Problem title: Adding new member to CsvProvider type in F# Tags: csv, f%23, record, type-providers Problem: Adding new member to CsvProvider type in F# I'm reading a CSV file in F# with CsvProvider from FSharp.Data. Is there a way to add new (calculated) columns withou...
Adding new member to CsvProvider type in F# Adding new member to CsvProvider type in F# csv f%23 record type-providers Adding CsvProvider FSharp.Data Person persons.csv Person.Load YearOfBirth Age DateTime.Now.Year Adding new member to CsvProvider type in F# I'm reading a CSV file in F# with CsvProvider from FSharp.Dat...
[ -0.00872802734375, 0.005645751953125, 0.021240234375, 0.0294189453125, -0.027099609375, 0.00099945068359375, -0.00193023681640625, 0.0306396484375, -0.00762939453125, -0.01495361328125, -0.007110595703125, -0.00628662109375, 0.020751953125, 0.0079345703125, 0.00118255615234375, -0.0303...
[ 62, 59725, 3525, 32786, 47, 313, 67756, 177997, 62160, 10644, 23, 563, 4904, 20763, 334, 1238, 3742, 17164, 93136, 93774, 3467, 254, 137989, 15270, 3445, 4439, 15363, 42552, 132887, 41153, 72944, 70059, 137594, 69085, 147, 16454, 43486, 11435...
[ 0.1240234375, 0.09521484375, 0.1607666015625, 0.24755859375, 0.077880859375, 0.10791015625, 0.240478515625, 0.17724609375, 0.173095703125, 0.175048828125, 0.011688232421875, 0.1326904296875, 0.2264404296875, 0.1044921875, 0.1956787109375, 0.0347900390625, 0.07470703125, 0.092529296...
embed
24308972_c0
24308972
fsharp
0
Title: Convert tree to list Problem title: Convert tree to list Tags: f%23-interactive, f%23, tree, recursion Problem: Convert tree to list How can I convert a tree to a list: So far I have the following code but its giving several issues: type 'a tree = Lf | Br of 'a * 'a tree * 'a tree;; let rec elementRight xs = fun...
Convert tree to list Convert tree to list f%23-interactive f%23 tree recursion Convert t1::xs t2::xs Convert tree to list How can I convert a tree to a list: So far I have the following code but its giving several issues:
[ 0.005401611328125, 0.0096435546875, -0.006500244140625, -0.0281982421875, 0.02001953125, 0.0262451171875, -0.03515625, 0.0033416748046875, 0.0004711151123046875, -0.031494140625, -0.000408172607421875, -0.0069580078125, 0.01129150390625, -0.003936767578125, 0.01397705078125, 0.00793457...
[ 1657, 11549, 53201, 47, 5303, 1238, 27495, 10433, 71232, 3742, 195625, 1830, 808, 82825, 425, 7, 304, 831, 96760, 10, 2060, 765, 25632, 18151, 6863, 68772, 40368, 37348 ]
[ 0.060882568359375, 0.163818359375, 0.28955078125, 0.1138916015625, 0.265869140625, 0.04241943359375, 0.0677490234375, 0.0731201171875, 0.0540771484375, 0.095703125, 0.149169921875, 0.0238800048828125, 0.06976318359375, 0.010894775390625, 0.0731201171875, 0.03436279296875, 0.040954589...
embed
41190293_c0
41190293
fsharp
0
Title: How to create F# .Net Core ConsoleApp in Visual Studio 2017 RC Problem title: How to create F# .Net Core ConsoleApp in Visual Studio 2017 RC Tags: .net-core, csproj, f%23, visual-studio-2017 Problem: How to create F# .Net Core ConsoleApp in Visual Studio 2017 RC project.json is gone and I don't quite understand ...
How to create F# .Net Core ConsoleApp in Visual Studio 2017 RC How to create F# .Net Core ConsoleApp in Visual Studio 2017 RC .net-core csproj f%23 visual-studio-2017 How Net Core ConsoleApp Visual Studio project.json Console Application TargetFramework netcoreapp1.0 visual-studio-2017 How to create F# .Net Core Consol...
[ -0.0137939453125, 0.0238037109375, 0.0130615234375, 0.03076171875, -0.00653076171875, -0.0137939453125, 0.006591796875, -0.00537109375, -0.009033203125, 0.0167236328125, 0.021240234375, 0.0045166015625, -0.015869140625, 0.009033203125, 0.0263671875, -0.0179443359375, -0.0001344680786...
[ 11249, 47, 28282, 563, 4904, 5, 24447, 31365, 1657, 40777, 39179, 73372, 22968, 505, 81135, 23, 1179, 30854, 20763, 3454, 170, 1238, 3742, 21176, 52629, 22842, 10086, 13452, 1681, 104921, 160017, 108386, 18244, 2043, 9007, 102107, 74955, 2821...
[ 0.0670166015625, 0.031494140625, 0.164794921875, 0.1312255859375, 0.2166748046875, 0.05352783203125, 0.1572265625, 0.237548828125, 0.10357666015625, 0.1973876953125, 0.2095947265625, 0.1988525390625, 0.189208984375, 0.2117919921875, 0.1873779296875, 0.02593994140625, 0.0892333984375,...
embed
46515912_c0
46515912
fsharp
0
Title: F# unit tests and assertion on pattern matching Problem title: F# unit tests and assertion on pattern matching Tags: f%23, xunit Problem: F# unit tests and assertion on pattern matching I began to do the bowling kata ( http://codingdojo.org/kata/Bowling/ ) in F#. I wrote a first unit test : [<Fact>] let ``If no ...
F# unit tests and assertion on pattern matching F# unit tests and assertion on pattern matching f%23 xunit Fact TenthFrame Assert.True Frame Assert.Equal List.item F# unit tests and assertion on pattern matching I began to do the bowling kata ( http://codingdojo.org/kata/Bowling/ ) in F#. I wrote a first unit test : Th...
[ -0.011962890625, -0.0113525390625, -0.0067138671875, -0.005767822265625, -0.007537841796875, -0.02001953125, -0.00213623046875, 0.00665283203125, 0.00005364418029785156, 0.01031494140625, 0.0223388671875, 0.0291748046875, -0.01336669921875, 0.004302978515625, -0.00145721435546875, 0.00...
[ 563, 4904, 25072, 109921, 10, 16865, 103510, 14858, 1238, 3742, 10438, 6773, 132640, 5531, 927, 108386, 1301, 33657, 882, 42557, 71723, 32036, 217, 1363, 214, 80723, 120324, 3441, 587, 513, 11222, 8770, 2069, 54397, 5117, 3034, 10922, 19659, ...
[ 0.11962890625, 0.1983642578125, 0.162353515625, 0.20263671875, 0.0396728515625, 0.147705078125, 0.198486328125, 0.185546875, 0.054443359375, 0.0697021484375, 0.039215087890625, 0.0948486328125, 0.125, 0.1044921875, 0.044189453125, 0.113037109375, 0.05206298828125, 0.2269287109375, ...
embed
9134475_c0
9134475
fsharp
0
Title: Expression&lt;Func&lt;T, bool&gt;&gt; from a F# func Problem title: Expression&lt;Func&lt;T, bool&gt;&gt; from a F# func Tags: f%23, linq Problem: Expression > from a F# func in linq, .Where takes a Expression> predicate, which I can write in F# as <@ fun item:'a -> condition @> // Expr<'a -> bool> I'm using FSh...
Expression&lt;Func&lt;T, bool&gt;&gt; from a F# func Expression&lt;Func&lt;T, bool&gt;&gt; from a F# func f%23 linq a Expression Expr Expression > from a F# func in linq, .Where takes a Expression> predicate, which I can write in F# as I'm using FSharp.Powerpack to build the expression from a quotation, but what it giv...
[ 0.0213623046875, 0.017333984375, 0.00006961822509765625, -0.0026092529296875, -0.0057373046875, 0.0189208984375, 0.00665283203125, 0.0126953125, 0.000888824462890625, -0.027587890625, -0.005523681640625, 0.01226806640625, -0.0108642578125, 0.005035400390625, 0.00830078125, 0.0218505859...
[ 25129, 1830, 1277, 97249, 238, 618, 142484, 5386, 1295, 563, 4904, 7477, 1238, 3742, 96, 44982, 60075, 42, 35593, 51776, 1653, 2063, 33022, 93774, 3467, 254, 105022, 29102, 45367, 125195, 81732, 76199, 74644, 441, 5584, 178752, 53894, 14537, ...
[ 0.2073974609375, 0.16015625, 0.031494140625, 0.181640625, 0.1102294921875, 0.110107421875, 0.14599609375, 0.051116943359375, 0.0985107421875, 0.083251953125, 0.19482421875, 0.1475830078125, 0.024658203125, 0.1103515625, 0.05792236328125, 0.2109375, 0.103759765625, 0.1015625, 0.03...
embed
9470157_c0
9470157
fsharp
0
Title: reloading type providers Problem title: reloading type providers Tags: visual-studio, type-providers, f%23 Problem: reloading type providers I am using the MiniCSVTypeProvider provided in the fsharp powerpack samples. Unfortunately, it thinks the values provided are float, while mine are of various (varying) for...
reloading type providers reloading type providers visual-studio type-providers f%23 reloading type providers I am using the MiniCSVTypeProvider provided in the fsharp powerpack samples. Unfortunately, it thinks the values provided are float, while mine are of various (varying) formats. I therefore rewrote the MiniCsvTy...
[ -0.0040283203125, 0.0213623046875, 0.00101470947265625, 0.025634765625, -0.0103759765625, -0.000606536865234375, -0.01507568359375, -0.00518798828125, -0.017822265625, -0.0233154296875, -0.00634765625, -0.00494384765625, 0.00031280517578125, -0.0115966796875, 0.0098876953125, 0.0115966...
[ 456, 63033, 10644, 81450, 214, 21176, 52629, 93136, 1238, 3949, 3742, 17368, 13468, 19283, 856, 196707, 177997, 62160, 62952, 89280, 254, 14537, 29102, 121413, 185397, 5351, 70, 142424, 621, 21917, 257, 12960, 5665, 67842, 1961, 38543, 9384, ...
[ 0.1063232421875, 0.178466796875, 0.232177734375, 0.2451171875, 0.01104736328125, 0.12646484375, 0.1475830078125, 0.1514892578125, 0.056304931640625, 0.03466796875, 0.10308837890625, 0.06597900390625, 0.1552734375, 0.07666015625, 0.1922607421875, 0.2529296875, 0.16259765625, 0.14916...
embed
7367655_c0
7367655
fsharp
0
Title: Defining functions pointfree-style in functional programming. What are the cons/pros? Problem title: Defining functions pointfree-style in functional programming. What are the cons/pros? Tags: pointfree, ocaml, functional-programming, f%23 Problem: Defining functions pointfree-style in functional programming. Wh...
Defining functions pointfree-style in functional programming. What are the cons/pros? Defining functions pointfree-style in functional programming. What are the cons/pros? pointfree ocaml functional-programming f%23 Defining What Array.map Defining functions pointfree-style in functional programming. What are the cons/...
[ 0.0064697265625, -0.005645751953125, -0.00921630859375, 0.00909423828125, -0.003936767578125, -0.0081787109375, 0.00457763671875, 0.014404296875, 0.007293701171875, -0.0126953125, 0.00823974609375, 0.0155029296875, -0.010009765625, -0.00107574462890625, 0.005584716796875, -0.0082397460...
[ 88606, 32354, 6275, 32087, 40946, 123309, 56037, 449, 158, 7, 88718, 36, 9779, 141, 28966, 214, 3742, 4865, 69253, 53, 62346, 33022, 3173, 113292, 35978, 11522, 32562, 64457, 92940, 5117, 17932, 11782, 80934 ]
[ 0.1728515625, 0.193115234375, 0.1373291015625, 0.180419921875, 0.181396484375, 0.1798095703125, 0.12255859375, 0.04351806640625, 0.181396484375, 0.0875244140625, 0.1363525390625, 0.049285888671875, 0.072998046875, 0.082275390625, 0.114990234375, 0.03192138671875, 0.05377197265625, ...
embed
45110854_c0
45110854
fsharp
0
Title: Can I get the type of a statically resolved type parameter? Problem title: Can I get the type of a statically resolved type parameter? Tags: f%23 Problem: Can I get the type of a statically resolved type parameter? Say, I have something like this. It does not compile, but you can see what I'm trying to do. I've ...
Can I get the type of a statically resolved type parameter? Can I get the type of a statically resolved type parameter? f%23 Can s:string Some None t.Name Can I get the type of a statically resolved type parameter? Say, I have something like this. It does not compile, but you can see what I'm trying to do. I've tried t...
[ -0.002227783203125, 0.0031280517578125, 0.0218505859375, 0.0023651123046875, -0.00628662109375, -0.004669189453125, -0.00299072265625, -0.00982666015625, 0.0025177001953125, -0.02197265625, 0.004425048828125, -0.039306640625, -0.01025390625, -0.0272216796875, 0.020751953125, -0.0013351...
[ 4171, 87, 2046, 70, 10644, 111, 13254, 71407, 103608, 71, 171859, 1238, 3742, 91, 12, 91693, 31384, 438, 86, 808, 163612, 1884, 903, 959, 9969, 1340, 831, 1957, 31577, 37842, 26484, 13747, 16940 ]
[ 0.07171630859375, 0.0256195068359375, 0.122802734375, 0.0423583984375, 0.224365234375, 0.064453125, 0.1561279296875, 0.107666015625, 0.1624755859375, 0.0684814453125, 0.2047119140625, 0.0280914306640625, 0.0999755859375, 0.0499267578125, 0.006500244140625, 0.1572265625, 0.04913330078...
embed
62356266_c0
62356266
fsharp
0
Title: Observable from callback method Problem title: Observable from callback method Tags: f%23, system.reactive, rx.net, observable, reactive-programming Problem: Observable from callback method Let say I have a class which iherits legacy API and overrides a virtual method which is called when something happens type ...
Observable from callback method Observable from callback method f%23 system.reactive rx.net observable reactive-programming callback Observable MyClass IObservable Something _.OnSomething system.reactive rx.net Observable from callback method Let say I have a class which iherits legacy API and overrides a virtual metho...
[ -0.0174560546875, 0.0390625, -0.002716064453125, 0.01483154296875, -0.000492095947265625, 0.01495361328125, 0.0103759765625, 0.0159912109375, 0.00070953369140625, -0.05908203125, -0.02685546875, -0.046142578125, 0.00396728515625, 0.0228271484375, -0.0130615234375, -0.00750732421875, ...
[ 87652, 2661, 1295, 11782, 12620, 55300, 1238, 3949, 3742, 5426, 71232, 67179, 1179, 22046, 456, 28966, 2646, 140803, 87, 46471, 65756, 200905, 20320, 282, 64113, 5154, 18507, 3334, 3257, 61687, 645, 416, 20513, 35839, 3229, 9844, 96276, 11249...
[ 0.2464599609375, 0.2244873046875, 0.1162109375, 0.1539306640625, 0.2115478515625, 0.168701171875, 0.017242431640625, 0.0300750732421875, 0.0970458984375, 0.05328369140625, 0.12744140625, 0.1336669921875, 0.07159423828125, 0.1793212890625, 0.0423583984375, 0.081298828125, 0.0875854492...
embed
49469017_c0
49469017
fsharp
0
Title: FSharp.Data: Use SqlDataProvider without database Problem title: FSharp.Data: Use SqlDataProvider without database Tags: f%23-data, f%23, type-providers Problem: FSharp.Data: Use SqlDataProvider without database I am using FSharp.Data SqlDataProvider (type provider) to access my data. Even though this is very ni...
FSharp.Data: Use SqlDataProvider without database FSharp.Data: Use SqlDataProvider without database f%23-data f%23 type-providers FSharp.Data Use SqlDataProvider FSharp.Data: Use SqlDataProvider without database I am using FSharp.Data SqlDataProvider (type provider) to access my data. Even though this is very nice way ...
[ 0.0216064453125, 0.0263671875, -0.00189971923828125, 0.0068359375, -0.0279541015625, 0.027587890625, 0.0025177001953125, -0.01287841796875, -0.008056640625, -0.04296875, -0.0048828125, -0.01226806640625, 0.003173828125, 0.01171875, -0.00148773193359375, -0.01116943359375, 0.000915527...
[ 93774, 3467, 254, 5, 137989, 36836, 159, 99247, 177997, 62160, 15490, 63399, 1238, 27495, 10135, 3742, 10644, 93136, 17368, 50986, 81450, 17203, 2053, 4552, 26267, 2046, 3934, 563, 4904, 52895, 144570, 26785, 61903, 34754, 65998, 9969, 1340, ...
[ 0.08917236328125, 0.1920166015625, 0.221435546875, 0.048858642578125, 0.1507568359375, 0.1094970703125, 0.0140380859375, 0.164306640625, 0.18017578125, 0.1494140625, 0.1046142578125, 0.17724609375, 0.025482177734375, 0.00787353515625, 0.037811279296875, 0.0496826171875, 0.12780761718...
embed
23653476_c0
23653476
fsharp
0
Title: F# type mismatch Problem title: F# type mismatch Tags: f%23 Problem: F# type mismatch I am converting a program from Haskell to F#. Having trouble accessing the Haskell Library in .Net. What is wrong with this declaration? type Product = string type Shopping = Product list let p_tea = "Tea" let p_sugar = "Sugar"...
F# type mismatch F# type mismatch f%23 Product Shopping p_tea Tea p_sugar Sugar p_coffee Coffee p_biscuit Biscuit p_milk Milk p_soya Soya Type Expecting F# type mismatch I am converting a program from Haskell to F#. Having trouble accessing the Haskell Library in .Net. What is wrong with this declaration? I get the fol...
[ 0.0025482177734375, 0.017822265625, 0.002593994140625, 0.0035858154296875, -0.00567626953125, 0.000820159912109375, -0.0267333984375, 0.014404296875, 0.0040283203125, 0.032958984375, 0.009521484375, 0.0164794921875, -0.00145721435546875, -0.003631591796875, -0.005462646484375, -0.00823...
[ 563, 4904, 10644, 1239, 98753, 1238, 3949, 3742, 73111, 80298, 915, 17615, 41851, 1159, 1970, 136104, 587, 16670, 110047, 6454, 1010, 217, 14851, 12397, 171048, 454, 7, 32135, 1061, 395, 60457, 60075, 24762, 96760, 1528, 1295, 20625, 142508, ...
[ 0.1605224609375, 0.222412109375, 0.2156982421875, 0.14892578125, 0.2578125, 0.11962890625, 0.05987548828125, 0.1597900390625, 0.1402587890625, 0.1962890625, 0.06787109375, 0.1722412109375, 0.1748046875, 0.057098388671875, 0.0845947265625, 0.1285400390625, 0.018218994140625, 0.12475...
embed