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
38276075_c0
38276075
fsharp
0
Title: Get xml-stylesheet when using xml type provider? Problem title: Get xml-stylesheet when using xml type provider? Tags: f%23-data, f%23 Problem: Get xml-stylesheet when using xml type provider? How to get the xml-stylesheet using xml type provider? let xml = XmlProvider<"""<?xml version="1.0" encoding="iso-8859-1...
Get xml-stylesheet when using xml type provider? Get xml-stylesheet when using xml type provider? f%23-data f%23 xml Get XmlProvider iso-8859-1 application_internet.xsl GetSample Get xml-stylesheet when using xml type provider? How to get the xml-stylesheet using xml type provider? Expect string '/stylesheets/applicati...
[ 0.01336669921875, 0.0213623046875, 0.005462646484375, 0.0242919921875, -0.00860595703125, -0.00555419921875, 0.0084228515625, 0.0019683837890625, -0.0155029296875, -0.026611328125, 0.0167236328125, -0.013427734375, -0.0052490234375, -0.0159912109375, 0.004241943359375, 0.00799560546875...
[ 20779, 131492, 9, 40946, 7816, 126, 3229, 17368, 10644, 81450, 1238, 27495, 10135, 3742, 1193, 7237, 177997, 62160, 13882, 187800, 179219, 38415, 116153, 425, 24861, 5464, 33209, 2046, 60075, 24762, 79315, 64, 7831, 101687, 5 ]
[ 0.109130859375, 0.260009765625, 0.07000732421875, 0.18798828125, 0.2158203125, 0.109375, 0.041595458984375, 0.06201171875, 0.1851806640625, 0.216064453125, 0.03436279296875, 0.07421875, 0.07513427734375, 0.0858154296875, 0.0838623046875, 0.15576171875, 0.147216796875, 0.09759521484...
embed
74644658_c1
74644658
fsharp
1
NoteWin = Some { progressNoteWin with ConfirmState = Some ConfirmStateEnum.CloseRequested } }, Cmd.none | None -> m, Cmd.none Code signals: Elemish.WPF, i:Interaction.Triggers, i:EventTrigger, EventName, Closing, i:InvokeCommandAction, PassEventArgsToCommand, Command, Binding, ClosingCommand, CommandParameter, ElementN...
NoteWin = Some { progressNoteWin with ConfirmState = Some ConfirmStateEnum.CloseRequested } }, Cmd.none | None -> m, Cmd.none Code signals: Elemish.WPF, i:Interaction.Triggers, i:EventTrigger, EventName, Closing, i:InvokeCommandAction, PassEventArgsToCommand, Command, Binding, ClosingCommand, CommandParameter, ElementN...
[ -0.002166748046875, 0.007659912109375, 0.00994873046875, 0.00075531005859375, 0.000522613525390625, -0.00579833984375, 0.005828857421875, -0.01904296875, 0.00616455078125, 0.0107421875, -0.002593994140625, 0.0074462890625, -0.0159912109375, 0.000133514404296875, 0.006103515625, 0.00692...
[ 18622, 92049, 2203, 31384, 42658, 110361, 678, 1657, 38949, 135206, 2606, 59453, 4332, 944, 14437, 313, 54686, 157, 438, 86, 347, 28864, 26073, 7, 12701, 78192, 41265, 44851, 44713, 74257, 21407, 192134, 36943, 163612, 51053, 6953, 23253, 107...
[ 0.270751953125, 0.2666015625, 0.10345458984375, 0.16552734375, 0.197265625, 0.293212890625, 0.0216217041015625, 0.0677490234375, 0.1641845703125, 0.122802734375, 0.11181640625, 0.11083984375, 0.0186614990234375, 0.1253662109375, 0.078369140625, 0.008758544921875, 0.1602783203125, 0...
embed
41915802_c0
41915802
fsharp
0
Title: This expression was expected to have type &#x27;unit&#x27; but here has type &#x27;&#x27;a []&#x27; Problem title: This expression was expected to have type &#x27;unit&#x27; but here has type &#x27;&#x27;a []&#x27; Tags: f%23 Problem: This expression was expected to have type 'unit' but here has type ''a []' The...
This expression was expected to have type &#x27;unit&#x27; but here has type &#x27;&#x27;a []&#x27; This expression was expected to have type &#x27;unit&#x27; but here has type &#x27;&#x27;a []&#x27; f%23 sequence.Length This expression was expected to have type 'unit' but here has type ''a []' The following code was a...
[ -0.00701904296875, 0.051025390625, 0.01190185546875, -0.000682830810546875, -0.0028839111328125, -0.0211181640625, -0.01116943359375, 0.006500244140625, 0.007598876953125, 0.0255126953125, -0.006988525390625, 0.022216796875, -0.0113525390625, -0.01287841796875, 0.0286865234375, -0.0305...
[ 3293, 125195, 509, 84751, 765, 10644, 3768, 309, 217, 1284, 3688, 1556, 11, 378, 1238, 3949, 3742, 40, 944, 3956, 449, 268, 25632, 18151, 81887, 195625, 5844, 373, 73163, 12096, 563, 4904, 70, 18499, 73243, 100, 86991, 17262, 124519, 6183...
[ 0.055084228515625, 0.259033203125, 0.068603515625, 0.2122802734375, 0.0389404296875, 0.247314453125, 0.12548828125, 0.1910400390625, 0.152099609375, 0.130859375, 0.16796875, 0.1171875, 0.189208984375, 0.1075439453125, 0.095703125, 0.06536865234375, 0.1285400390625, 0.04598999023437...
embed
29545727_c1
29545727
fsharp
1
, I'm just not happy with the API: val resultA : (string * string) list = [("Second", "two"); ("First", "one")] val resultB : (string * string) list = [("Third", "three"); ("Second", "two"); ("First", "one")] UPDATE: The question was asked what would I like the call to look like? let resultA = argA |> toParam [] Then t...
, I'm just not happy with the API: val resultA : (string * string) list = [("Second", "two"); ("First", "one")] val resultB : (string * string) list = [("Third", "three"); ("Second", "two"); ("First", "one")] UPDATE: The question was asked what would I like the call to look like? let resultA = argA |> toParam [] Then t...
[ -0.006500244140625, 0.0003490447998046875, -0.0032501220703125, 0.00183868408203125, -0.033447265625, 0.00016021728515625, -0.00592041015625, -0.01483154296875, 0.0126953125, -0.0115966796875, 0.01007080078125, 0.017822265625, 0.01068115234375, 0.005706787109375, -0.0020904541015625, -...
[ 39, 959, 17723, 678, 61687, 12, 3502, 16750, 284, 91693, 661, 79315, 5303, 2203, 2271, 71, 55547, 207263, 3630, 268, 571, 117177, 4216, 107, 2806, 1884, 11782, 6713, 79459, 47, 55292, 26366, 36766, 5351, 185171, 7311, 51515, 43240, 5885, ...
[ 0.1309814453125, 0.0936279296875, 0.1497802734375, 0.030914306640625, 0.2125244140625, 0.0278167724609375, 0.210693359375, 0.249755859375, 0.16455078125, 0.1373291015625, 0.0340576171875, 0.1846923828125, 0.212890625, 0.05621337890625, 0.0572509765625, 0.012176513671875, 0.1293945312...
embed
57413593_c0
57413593
fsharp
0
Title: Defining a function in f# Problem title: Defining a function in f# Tags: functional-programming, f%23, function Problem: Defining a function in f# In F# I can define a function like this let (-+->) x y = x + y and call like this let z = 5 -+-> 6 I can even do something like this let (-++->) x y z = x y z let p =...
Defining a function in f# Defining a function in f# functional-programming f%23 function Defining Unexpected Expected Defining a function in f# In F# I can define a function like this and call like this I can even do something like this But why can't I do this? it gives me this error Unexpected identifier in binding. E...
[ -0.000823974609375, 0.010986328125, 0.00433349609375, 0.000637054443359375, 0.00775146484375, 0.01202392578125, 0.0018768310546875, 0.00836181640625, 0.000762939453125, -0.01422119140625, -0.008056640625, -0.00119781494140625, -0.00628662109375, -0.00469970703125, 0.01177978515625, -0....
[ 88606, 32354, 23, 1238, 4904, 449, 123309, 28966, 3949, 3742, 992, 83613, 13, 89829, 60075, 563, 831, 61924, 1884, 903, 11782, 3853, 54, 15400, 18, 76199, 163, 18499, 42485, 56, 128239, 1369, 47, 1098, 2633, 9, 1328, 103607, 1022, 113, ...
[ 0.196044921875, 0.2174072265625, 0.04071044921875, 0.122802734375, 0.21240234375, 0.0254669189453125, 0.132080078125, 0.09356689453125, 0.06658935546875, 0.176513671875, 0.1177978515625, 0.1392822265625, 0.1405029296875, 0.1796875, 0.1522216796875, 0.1126708984375, 0.1295166015625, ...
embed
78430579_c0
78430579
fsharp
0
Title: I have a list with strings in it: [&quot;one&quot;; &quot;two&quot;; &quot;three&quot;] - how do I print it in F#? Problem title: I have a list with strings in it: [&quot;one&quot;; &quot;two&quot;; &quot;three&quot;] - how do I print it in F#? Tags: f%23, string, printing, list Problem: I have a list with strin...
I have a list with strings in it: [&quot;one&quot;; &quot;two&quot;; &quot;three&quot;] - how do I print it in F#? I have a list with strings in it: [&quot;one&quot;; &quot;two&quot;; &quot;three&quot;] - how do I print it in F#? f%23 string printing list function2 I have a list with strings in it: ["one"; "two"; "thre...
[ 0.004241943359375, -0.01275634765625, -0.0037384033203125, 0.0234375, -0.01019287109375, 0.0137939453125, 0.0164794921875, 0.0126953125, 0.0179443359375, 0.03759765625, 0.011962890625, -0.037109375, 0.00897216796875, -0.000629425048828125, -0.015869140625, 0.002685546875, 0.014282226...
[ 765, 5303, 678, 79315, 7, 23, 442, 3630, 55547, 927, 107, 13, 3642, 28412, 563, 4904, 1238, 3742, 2448, 1916, 32354, 304, 154663, 41206 ]
[ 0.0248870849609375, 0.2017822265625, 0.055999755859375, 0.251708984375, 0.06060791015625, 0.042510986328125, 0.07916259765625, 0.1143798828125, 0.164794921875, 0.035552978515625, 0.125, 0.058074951171875, 0.03533935546875, 0.220458984375, 0.1297607421875, 0.21484375, 0.0849609375, ...
embed
40319647_c0
40319647
fsharp
0
Title: F# Two Different types of Function Arguments Problem title: F# Two Different types of Function Arguments Tags: function, string, f%23, int, arguments Problem: F# Two Different types of Function Arguments Im trying to make a function that will take a string and an integer as arguments/input. let rec twoTwo (s : s...
F# Two Different types of Function Arguments F# Two Different types of Function Arguments function string f%23 int arguments Two Different Arguments n-1 F# Two Different types of Function Arguments Im trying to make a function that will take a string and an integer as arguments/input. Here i get the error that the type...
[ 0.00078582763671875, 0.000888824462890625, 0.0037689208984375, 0.032470703125, 0.006439208984375, 0.0177001953125, 0.0002288818359375, -0.003265380859375, 0.0029296875, 0.021728515625, 0.039306640625, -0.03466796875, -0.0023956298828125, 0.02197265625, 0.0181884765625, -0.0079345703125...
[ 563, 4904, 32964, 242520, 52895, 28670, 112140, 32354, 79315, 1238, 3949, 3742, 23, 18, 10750, 5759, 10763, 3370, 31577, 3249, 5646, 136, 892, 1505, 73, 7077, 18499, 10644, 14602, 959, 14858, 83, 107314, 15400, 195625, 5844, 11782, 18025, 9...
[ 0.0897216796875, 0.14990234375, 0.1422119140625, 0.150390625, 0.135986328125, 0.127685546875, 0.2239990234375, 0.1436767578125, 0.20263671875, 0.084228515625, 0.048858642578125, 0.132568359375, 0.1009521484375, 0.1383056640625, 0.2052001953125, 0.07562255859375, 0.00482177734375, 0...
embed
72523914_c0
72523914
fsharp
0
Title: Is it possible to forward an optional argument in F# Problem title: Is it possible to forward an optional argument in F# Tags: optional-parameters, f%23 Problem: Is it possible to forward an optional argument in F# I want to define an overloaded member function in F# member o.m1(?x: int) = o.m1("bugs bunny", x) ...
Is it possible to forward an optional argument in F# Is it possible to forward an optional argument in F# optional-parameters f%23 o.m1 Some Is it possible to forward an optional argument in F# I want to define an overloaded member function in F# but the code above fails. I can solve this so: I wonder if it is possible...
[ 0.0107421875, 0.01470947265625, -0.004119873046875, -0.01416015625, -0.0205078125, -0.0172119140625, 0.0145263671875, -0.0196533203125, 0.009033203125, 0.01312255859375, 0.029541015625, 0.0078125, 0.0133056640625, -0.0068359375, 0.0242919921875, -0.004058837890625, 0.0030364990234375...
[ 2071, 442, 7722, 47, 40225, 142, 35829, 289, 10750, 23, 563, 4904, 6276, 29089, 1238, 3949, 3742, 36, 418, 31384, 3444, 61924, 645, 63033, 297, 32786, 32354, 18151, 35782, 831, 86869, 32195, 71864, 101089 ]
[ 0.04864501953125, 0.0545654296875, 0.170166015625, 0.05926513671875, 0.250732421875, 0.0374755859375, 0.21484375, 0.1397705078125, 0.2425537109375, 0.0682373046875, 0.155517578125, 0.20849609375, 0.06719970703125, 0.0948486328125, 0.1142578125, 0.01556396484375, 0.13232421875, 0.05...
embed
37663424_c0
37663424
fsharp
0
Title: how do you create a large array? Problem title: how do you create a large array? Tags: arrays, c%23-to-f%23, f%23, gcallowverylargeobjects Problem: how do you create a large array? Given // r is a System.Data.IDataRecord var blob = new byte[(r.GetBytes(0, 0, null, 0, int.MaxValue))]; r.GetBytes(0, 0, blob, 0, bl...
how do you create a large array? how do you create a large array? arrays c%23-to-f%23 f%23 gcallowverylargeobjects System.Data.IDataRecord r.GetBytes int.MaxValue blob.Length Int64 Array.zeroCreate Array.init Int32 Int32.MaxValue how do you create a large array? Given and r.GetBytes(...) returns Int64 Since Array.zeroC...
[ 0.0257568359375, 0.0169677734375, -0.01806640625, 0.012451171875, -0.0147705078125, -0.004150390625, -0.00150299072265625, 0.01153564453125, 0.006072998046875, 0.01318359375, 0.0062255859375, -0.01513671875, -0.00482177734375, -0.0023040771484375, 0.011474609375, -0.024169921875, 0.0...
[ 3642, 54, 398, 28282, 21334, 10298, 53, 10, 4778, 27495, 188, 420, 3742, 1238, 41566, 104643, 320, 429, 187694, 12353, 32271, 1690, 126, 75358, 1636, 18, 71346, 856, 50770, 29695, 275, 13307, 69253, 80510, 63784, 2182, 5, 73, 217, 360, ...
[ 0.0933837890625, 0.031707763671875, 0.013580322265625, 0.202392578125, 0.202880859375, 0.2486572265625, 0.19970703125, 0.049224853515625, 0.1007080078125, 0.084716796875, 0.06549072265625, 0.005706787109375, 0.047943115234375, 0.012176513671875, 0.086669921875, 0.094970703125, 0.0843...
embed
39714607_c0
39714607
fsharp
0
Title: F# Powerset Function Problem title: F# Powerset Function Tags: recursion, powerset, f%23 Problem: F# Powerset Function The function below returns the powerset of a set (list). let rec powerset = function | [] -> [[]] | x::xs -> List.collect (fun sub -> [sub; x::sub]) (powerset xs) I don't understand why exactly ...
F# Powerset Function F# Powerset Function recursion powerset f%23 Powerset x::xs List.collect x::sub F# Powerset Function The function below returns the powerset of a set (list). I don't understand why exactly it works. I understand recursion. I also understand how List.collect works. I know that recursion will continu...
[ 0.0155029296875, -0.002532958984375, 0.0289306640625, -0.0020294189453125, 0.000949859619140625, -0.01171875, -0.0196533203125, -0.01043701171875, 0.0181884765625, 0.00141143798828125, 0.00836181640625, 0.0140380859375, 0.007232666015625, 0.0150146484375, -0.0035400390625, 0.0179443359...
[ 563, 4904, 17170, 3509, 28670, 10763, 195625, 1830, 14537, 1238, 3949, 3742, 425, 32036, 196352, 1022, 22144, 32354, 35064, 30646, 7, 70, 111, 5423, 6562, 2301, 18, 28219, 15400, 66161, 442, 43240, 87, 3714, 1221, 21342, 24189, 110527, 9790...
[ 0.08349609375, 0.175048828125, 0.1927490234375, 0.215576171875, 0.1517333984375, 0.0154876708984375, 0.2154541015625, 0.1221923828125, 0.20556640625, 0.07806396484375, 0.06005859375, 0.134033203125, 0.03173828125, 0.16552734375, 0.203369140625, 0.023284912109375, 0.1260986328125, 0...
embed
19190048_c0
19190048
fsharp
0
Title: F# vector rowvector multiplication issue Problem title: F# vector rowvector multiplication issue Tags: .net, f%23, matrix, vector Problem: F# vector rowvector multiplication issue I need to multiply a Vector by a RowVector to get a Matrix as the result. But the F# libraries do not have such an implementation for...
F# vector rowvector multiplication issue F# vector rowvector multiplication issue .net f%23 matrix vector Vector.transpose F# vector rowvector multiplication issue I need to multiply a Vector by a RowVector to get a Matrix as the result. But the F# libraries do not have such an implementation for the * operator. How ca...
[ -0.025146484375, 0.033203125, 0.01092529296875, 0.01226806640625, 0.00244140625, -0.033935546875, -0.02392578125, -0.004364013671875, -0.008056640625, -0.0224609375, 0.009765625, 0.01202392578125, -0.00567626953125, 0.00799560546875, -0.04931640625, -0.0198974609375, 0.00189971923828...
[ 563, 4904, 173, 18770, 15555, 272, 127664, 1363, 31089, 1179, 1238, 3949, 3742, 50944, 2609, 30145, 78381, 87, 3871, 6024, 62479, 390, 96190, 26455, 47, 2046, 194234, 237, 70, 16750, 4966, 35773, 10484, 54, 959, 765, 6044, 208124, 661, 39...
[ 0.142822265625, 0.2119140625, 0.1611328125, 0.1871337890625, 0.204345703125, 0.1922607421875, 0.1947021484375, 0.03131103515625, 0.1392822265625, 0.122314453125, 0.07159423828125, 0.0239105224609375, 0.13037109375, 0.1011962890625, 0.189697265625, 0.0814208984375, 0.05889892578125, ...
embed
51934708_c0
51934708
fsharp
0
Title: Is there a more F# idiomatic way for code using TPL? Problem title: Is there a more F# idiomatic way for code using TPL? Tags: apache-kafka, f%23 Problem: Is there a more F# idiomatic way for code using TPL? I'm converting the following C# code to F#. ( https://github.com/confluentinc/confluent-kafka-dotnet/blob...
Is there a more F# idiomatic way for code using TPL? Is there a more F# idiomatic way for code using TPL? apache-kafka f%23 TPL Task.Factory.StartNew consumer.Poll consumeTask.Wait Async Poll Is there a more F# idiomatic way for code using TPL? I'm converting the following C# code to F#. ( https://github.com/confluenti...
[ -0.0024261474609375, 0.0038299560546875, -0.00848388671875, 0.00101470947265625, -0.0024261474609375, -0.01165771484375, 0.00107574462890625, -0.006866455078125, -0.0004367828369140625, -0.0390625, 0.00872802734375, 0.017578125, 0.00836181640625, -0.0220947265625, 0.0189208984375, -0.0...
[ 1286, 563, 4904, 49666, 9523, 3917, 100, 18151, 17368, 384, 21130, 2241, 1430, 161, 420, 1238, 3742, 9598, 92, 135518, 31667, 126597, 46568, 107222, 7192, 1181, 18588, 9874, 1042, 22489, 217, 62, 12654, 238, 163498, 2685, 96760, 47, 15769, ...
[ 0.1116943359375, 0.1519775390625, 0.2342529296875, 0.2037353515625, 0.14453125, 0.1019287109375, 0.050811767578125, 0.2186279296875, 0.0947265625, 0.1220703125, 0.286865234375, 0.10198974609375, 0.1278076171875, 0.148193359375, 0.172607421875, 0.0655517578125, 0.130859375, 0.113281...
embed
30860095_c0
30860095
fsharp
0
Title: Properly implement F# Unit in C# Problem title: Properly implement F# Unit in C# Tags: functional-programming, unit-type, c%23, f%23 Problem: Properly implement F# Unit in C# This question is not about C#/F# compatibility as in this one . I'd like to know the proper way to implement a type like F# Unit in place ...
Properly implement F# Unit in C# Properly implement F# Unit in C# functional-programming unit-type c%23 f%23 Properly Unit Properly implement F# Unit in C# This question is not about C#/F# compatibility as in this one . I'd like to know the proper way to implement a type like F# Unit in place of using void . Obviously ...
[ 0.01611328125, 0.02734375, 0.0257568359375, 0.000446319580078125, -0.0010223388671875, -0.015625, 0.001129150390625, -0.00634765625, 0.020263671875, 0.00970458984375, -0.0181884765625, -0.0031890869140625, -0.0035858154296875, 0.00994873046875, 0.003997802734375, 0.01251220703125, 0....
[ 1250, 1264, 538, 29479, 563, 4904, 46640, 23, 313, 123309, 28966, 25072, 50986, 3742, 1238, 919, 112793, 1884, 3714, 27798, 3917, 47, 10644, 3687, 17368, 2292, 71, 17116, 5861, 16750, 172554, 201505, 18507, 5809, 566, 30816, 31486, 46876, 3...
[ 0.063720703125, 0.1187744140625, 0.016143798828125, 0.2178955078125, 0.168701171875, 0.253662109375, 0.258056640625, 0.0927734375, 0.1041259765625, 0.162353515625, 0.104248046875, 0.2086181640625, 0.167236328125, 0.09033203125, 0.0726318359375, 0.08270263671875, 0.1201171875, 0.069...
embed
18460503_c2
18460503
fsharp
2
9E-BF49-8BD99B0EEB68, Exception, REGDB_E_CLASSNOTREG, Running, gtest_output, xml:C, AppData, Local, Temp, tmpB2DE.tmp, Opened, FSharp.Core, Version, Culture, PublicKeyToken, b03f5f7f11d50a3a, FSharp.Data.RuntimeImplementation.XmlOperations.GetChildrenArray, XmlElement, FSharp.Data.RuntimeImplementation.XmlOperations.Co...
9E-BF49-8BD99B0EEB68, Exception, REGDB_E_CLASSNOTREG, Running, gtest_output, xml:C, AppData, Local, Temp, tmpB2DE.tmp, Opened, FSharp.Core, Version, Culture, PublicKeyToken, b03f5f7f11d50a3a, FSharp.Data.RuntimeImplementation.XmlOperations.GetChildrenArray, XmlElement, FSharp.Data.RuntimeImplementation.XmlOperations.Co...
[ 0.01336669921875, 0.018310546875, -0.012451171875, -0.031982421875, 0.0169677734375, 0.01275634765625, -0.007354736328125, -0.0299072265625, 0.0087890625, 0.021484375, 0.00142669677734375, -0.006591796875, -0.004241943359375, -0.02099609375, 0.032958984375, -0.00634765625, 0.01263427...
[ 483, 647, 9, 82350, 12977, 17376, 48969, 5046, 571, 24821, 16028, 5443, 63928, 60280, 39463, 37486, 70877, 8575, 56564, 724, 28398, 592, 706, 6954, 6056, 7077, 131492, 441, 5659, 137989, 24172, 37446, 2676, 304, 8399, 13527, 297, 93774, 346...
[ 0.1734619140625, 0.123779296875, 0.037353515625, 0.1585693359375, 0.2374267578125, 0.100341796875, 0.0924072265625, 0.167236328125, 0.0433349609375, 0.054443359375, 0.21337890625, 0.1258544921875, 0.2276611328125, 0.177001953125, 0.2200927734375, 0.1451416015625, 0.06524658203125, ...
embed
14289192_c0
14289192
fsharp
0
Title: Sharing data into an embedded FSI session Problem title: Sharing data into an embedded FSI session Tags: f%23 Problem: Sharing data into an embedded FSI session I have an existing application in which I'd like the ability to have my own FSI session. Although rather than a standard FSI session, I'd like the abili...
Sharing data into an embedded FSI session Sharing data into an embedded FSI session f%23 Sharing FSI Sharing data into an embedded FSI session I have an existing application in which I'd like the ability to have my own FSI session. Although rather than a standard FSI session, I'd like the ability to pre-populate the FS...
[ 0.032470703125, 0.020751953125, -0.0030670166015625, 0.0028839111328125, 0.004974365234375, -0.0106201171875, 0.0172119140625, 0.008544921875, 0.025634765625, -0.02880859375, 0.020751953125, 0.001007080078125, -0.0035247802734375, 0.02734375, 0.0096435546875, 0.001708984375, 0.028320...
[ 26520, 214, 2053, 3934, 55720, 69819, 563, 9902, 56002, 142, 1238, 3949, 3742, 144573, 38415, 71, 1884, 81273, 765, 759, 10002, 43257, 3501, 5570, 479, 771, 42943, 678, 1295, 27781, 17106, 73, 4027, 9433, 96276, 11809, 75935, 83184, 1221, ...
[ 0.2469482421875, 0.026458740234375, 0.2012939453125, 0.1435546875, 0.2352294921875, 0.1180419921875, 0.1585693359375, 0.254638671875, 0.2210693359375, 0.0064697265625, 0.057525634765625, 0.0207366943359375, 0.0546875, 0.1702880859375, 0.1712646484375, 0.02716064453125, 0.094177246093...
embed
50505304_c1
50505304
fsharp
1
.co.uk/search?q=FSharp.Data") let d= results.Descendants "a" Edit 3: The differences between running in fsharpi and vs: fsharpi is using mono, while VS is using dotnet (which is .net core 2) nuget downloaded FSharp.Core 4.0.0.1, while VS is using 4.3.4 I can't seem to force VS to use FSharp.Core 4.0.0.1. Even if I add ...
.co.uk/search?q=FSharp.Data") let d= results.Descendants "a" Edit 3: The differences between running in fsharpi and vs: fsharpi is using mono, while VS is using dotnet (which is .net core 2) nuget downloaded FSharp.Core 4.0.0.1, while VS is using 4.3.4 I can't seem to force VS to use FSharp.Core 4.0.0.1. Even if I add ...
[ -0.00604248046875, 0.033447265625, -0.00012159347534179688, -0.01043701171875, -0.007232666015625, -0.006500244140625, 0.002197265625, 0.00860595703125, -0.00238037109375, -0.053466796875, -0.0045166015625, -0.0166015625, -0.0167236328125, -0.0035552978515625, 0.020263671875, -0.006866...
[ 587, 2247, 86250, 36381, 3467, 254, 5, 137989, 2633, 104, 1369, 50339, 4657, 31146, 58349, 22408, 60212, 7, 17721, 51042, 1238, 89280, 1434, 136, 20209, 17368, 22460, 12960, 44160, 20633, 1179, 56458, 4958, 315, 3794, 7026, 93774, 50886, 40...
[ 0.04595947265625, 0.0892333984375, 0.168212890625, 0.08734130859375, 0.2315673828125, 0.2469482421875, 0.04364013671875, 0.1922607421875, 0.0163726806640625, 0.0162811279296875, 0.002655029296875, 0.1357421875, 0.0633544921875, 0.161865234375, 0.1463623046875, 0.00433349609375, 0.154...
embed
9213761_c0
9213761
fsharp
0
Title: Cartesian product two lists Problem title: Cartesian product two lists Tags: f%23, f%23-interactive, f%23-scripting Problem: Cartesian product two lists Possible Duplicate: F# - cross product of two lists Projecting a list of lists efficiently in F# I have a function that takes two integer lists and returns a si...
Cartesian product two lists Cartesian product two lists f%23 f%23-interactive f%23-scripting Cartesian x::xs List.map Cartesian product two lists I have a function that takes two integer lists and returns a single list with all the cartesian products. I think i have the correct idea but not the right implementation. Ca...
[ 0.00023651123046875, 0.01385498046875, 0.0084228515625, 0.00836181640625, -0.01171875, 0.018310546875, 0.004486083984375, -0.0111083984375, 0.00159454345703125, -0.0108642578125, 0.00958251953125, -0.0015716552734375, -0.00775146484375, 0.024169921875, -0.017578125, 0.0025787353515625,...
[ 106274, 39209, 12996, 6626, 5303, 1238, 3742, 27495, 10433, 71232, 32032, 1022, 425, 7, 32036, 62346, 765, 32354, 51776, 892, 1505, 30646, 11001, 678, 756, 129912, 3378, 38742, 87, 5351, 70, 26785, 6528, 959, 7108, 208124, 6275, 1314 ]
[ 0.156494140625, 0.1181640625, 0.2327880859375, 0.1790771484375, 0.23583984375, 0.020782470703125, 0.056640625, 0.068359375, 0.06024169921875, 0.037109375, 0.134521484375, 0.05755615234375, 0.08062744140625, 0.0057373046875, 0.1893310546875, 0.1278076171875, 0.010223388671875, 0.180...
embed
48888244_c2
48888244
fsharp
2
, MathNet.Filtering.OnlineFilter.CreateLowpass, MathNet.Filtering.ImpulseResponse.Finite, disp_beam_f, disp_beam, lowPass2.ProcessSamples, Array.min, __SOURCE_DIRECTORY__, MathNet.Numerics.3.8.0, net40, MathNet.Numerics.dll, MathNet.Filtering.0.4.0, MathNet.Filtering.dll, FSharp.Charting.0.91.1, net45, FSharp.Charting....
, MathNet.Filtering.OnlineFilter.CreateLowpass, MathNet.Filtering.ImpulseResponse.Finite, disp_beam_f, disp_beam, lowPass2.ProcessSamples, Array.min, __SOURCE_DIRECTORY__, MathNet.Numerics.3.8.0, net40, MathNet.Numerics.dll, MathNet.Filtering.0.4.0, MathNet.Filtering.dll, FSharp.Charting.0.91.1, net45, FSharp.Charting....
[ 0.0052490234375, 0.022705078125, -0.01104736328125, -0.009521484375, -0.002716064453125, 0.0023040771484375, 0.01141357421875, -0.01495361328125, 0.0208740234375, 0.01129150390625, -0.007598876953125, -0.003753662109375, 0.0128173828125, 0.003509521484375, 0.007476806640625, 0.00479125...
[ 6, 4, 78804, 24447, 5, 919, 379, 33558, 75387, 720, 63784, 2182, 15363, 434, 13409, 128878, 202, 184, 94399, 13, 6159, 17094, 58580, 372, 302, 420, 27226, 139117, 5442, 10752, 26531, 29494, 99726, 69253, 53, 1249, 5953, 294, 76234, 10854,...
[ 0.05908203125, 0.09906005859375, 0.1983642578125, 0.2442626953125, 0.07568359375, 0.0775146484375, 0.1961669921875, 0.1746826171875, 0.15673828125, 0.10516357421875, 0.1134033203125, 0.0054931640625, 0.1234130859375, 0.0960693359375, 0.223876953125, 0.03057861328125, 0.2081298828125,...
embed
59929889_c0
59929889
fsharp
0
Title: F#: Array of n Empty Lists Problem title: F#: Array of n Empty Lists Tags: f%23, arrays Problem: F#: Array of n Empty Lists I want to create an Array which contains n empty lists, but the compiler has some problems with the type. Both Array.create 5 [] and [| for i in 1..5 -> [] |] does not work. Does anyone hav...
F#: Array of n Empty Lists F#: Array of n Empty Lists f%23 arrays Array Empty Lists Array.create F#: Array of n Empty Lists I want to create an Array which contains n empty lists, but the compiler has some problems with the type. Both and does not work. Does anyone have any ideas what´s wrong with my code? I expect the...
[ 0.01409912109375, 0.000751495361328125, -0.003875732421875, 0.0201416015625, -0.0220947265625, 0.0015106201171875, 0.0087890625, -0.0125732421875, 0.0181884765625, 0.010498046875, 0.01348876953125, -0.0123291015625, -0.011962890625, 0.017822265625, 0.00030517578125, -0.00384521484375, ...
[ 563, 4904, 69253, 53, 111, 653, 31678, 939, 32036, 12, 1238, 3742, 10298, 4778, 7612, 2182, 7, 3444, 28282, 142, 70541, 201505, 5303, 1284, 9969, 34759, 1556, 44402, 10644, 149766, 14602, 959, 4488, 25647, 44691, 18151, 41206, 25632, 140992...
[ 0.11376953125, 0.173828125, 0.1922607421875, 0.177490234375, 0.1033935546875, 0.1231689453125, 0.1856689453125, 0.1693115234375, 0.2205810546875, 0.003021240234375, 0.06787109375, 0.09246826171875, 0.14697265625, 0.0850830078125, 0.0906982421875, 0.01287841796875, 0.07452392578125, ...
embed
73575639_c0
73575639
fsharp
0
Title: Hide/disable adaptive cards in chat after user&#x27;s selection Problem title: Hide/disable adaptive cards in chat after user&#x27;s selection Tags: f%23, botframework, adaptive-cards Problem: Hide/disable adaptive cards in chat after user's selection I am using microsoft bot framework v4 for our chat (in F#/C#)...
Hide/disable adaptive cards in chat after user&#x27;s selection Hide/disable adaptive cards in chat after user&#x27;s selection f%23 botframework adaptive-cards Hide Hide/disable adaptive cards in chat after user's selection I am using microsoft bot framework v4 for our chat (in F#/C#). We are using adaptive cards (ver...
[ -0.0146484375, -0.007659912109375, 0.006988525390625, 0.0211181640625, -0.0181884765625, 0.0167236328125, -0.0062255859375, 0.0057373046875, 0.0126953125, 0.013671875, -0.01031494140625, 0.025146484375, -0.0135498046875, 0.0174560546875, -0.00634765625, -0.000335693359375, 0.02917480...
[ 2673, 112, 64, 3827, 2886, 39908, 5844, 126381, 23, 3245, 7103, 38937, 3768, 132216, 13820, 160328, 38931, 17368, 138410, 170846, 81, 617, 2446, 563, 4904, 46354, 34635, 105876, 72095, 9655, 3642, 831, 2837, 979, 20596, 1556, 7228, 56282, 1...
[ 0.168212890625, 0.1434326171875, 0.022918701171875, 0.087890625, 0.18798828125, 0.20556640625, 0.160888671875, 0.240966796875, 0.0489501953125, 0.1796875, 0.119140625, 0.13525390625, 0.021484375, 0.197265625, 0.1732177734375, 0.064453125, 0.1910400390625, 0.036285400390625, 0.066...
embed
20465412_c0
20465412
fsharp
0
Title: Is PSeq the correct approach to use in F# 3.0? Problem title: Is PSeq the correct approach to use in F# 3.0? Tags: parallel-processing, f%23 Problem: Is PSeq the correct approach to use in F# 3.0? I've been using the F# powerpack for some time and it's got the great PSeq module in and it works really well. Howev...
Is PSeq the correct approach to use in F# 3.0? Is PSeq the correct approach to use in F# 3.0? parallel-processing f%23 PSeq Is PSeq the correct approach to use in F# 3.0? I've been using the F# powerpack for some time and it's got the great PSeq module in and it works really well. However it doesn't smell correct as th...
[ -0.006378173828125, 0.0260009765625, 0.0123291015625, 0.00433349609375, -0.008056640625, 0.0108642578125, 0.012451171875, -0.004791259765625, 0.0029754638671875, -0.0419921875, -0.005096435546875, 0.04443359375, 0.015869140625, 0.00116729736328125, -0.01214599609375, 0.004608154296875,...
[ 7940, 13, 864, 26785, 51515, 4527, 563, 4904, 17596, 70, 23, 95103, 63923, 1238, 3949, 3742, 17368, 14537, 29102, 88996, 43240, 6183, 5299, 118482, 111938, 35773, 5570, 1286, 32399, 15390, 3917, 51339, 4537, 8780, 44836, 35166, 88995 ]
[ 0.153076171875, 0.1915283203125, 0.22802734375, 0.1531982421875, 0.1680908203125, 0.110107421875, 0.1236572265625, 0.187744140625, 0.202392578125, 0.00177001953125, 0.039093017578125, 0.223876953125, 0.09326171875, 0.0902099609375, 0.005279541015625, 0.1329345703125, 0.01556396484375...
embed
30627443_c0
30627443
fsharp
0
Title: F# match with mutable Problem title: F# match with mutable Tags: f%23 Problem: F# match with mutable Just started playing with F# and I want to create some mutable model inside my app to play with, using F# discriminated union instead of class hierarchy. However there seems no way to "downcast" a discriminated u...
F# match with mutable F# match with mutable f%23 Foo FooBar Bar f.x All F# match with mutable Just started playing with F# and I want to create some mutable model inside my app to play with, using F# discriminated union instead of class hierarchy. However there seems no way to "downcast" a discriminated union and "matc...
[ -0.000232696533203125, 0.01544189453125, 0.0130615234375, -0.026123046875, -0.004119873046875, -0.0084228515625, 0.00186920166015625, 0.01904296875, 0.0311279296875, 0.005096435546875, 0.0189208984375, 0.0130615234375, 0.0174560546875, 0.01202392578125, 0.01483154296875, -0.03637695312...
[ 563, 4904, 14858, 678, 842, 22819, 1238, 3742, 9572, 31, 25267, 3253, 425, 3164, 75169, 3444, 28282, 3299, 46132, 4027, 11301, 17368, 55970, 3674, 69941, 64457, 18507, 1791, 147, 7668, 110, 3917, 34695, 55741, 58, 98753, 22027, 18, 175648, ...
[ 0.1744384765625, 0.2607421875, 0.2041015625, 0.1817626953125, 0.149658203125, 0.2176513671875, 0.07501220703125, 0.08740234375, 0.103759765625, 0.0574951171875, 0.1666259765625, 0.1568603515625, 0.0550537109375, 0.0440673828125, 0.0487060546875, 0.0299072265625, 0.08056640625, 0.17...
embed
43623340_c0
43623340
fsharp
0
Title: Fable D3 map sample Problem title: Fable D3 map sample Tags: fable-f%23, f%23, d3.js Problem: Fable D3 map sample I'm trying to run a Fable D3 map sample and I see it requires a browser server module . When I try to npm run build under the d3 folder it compiles npm run build > @ build C:\...\d3 > node ../node_mo...
Fable D3 map sample Fable D3 map sample fable-f%23 f%23 d3.js Fable node_modules Start Compiled fable-import-d3 Fable.Import.D3.js d3map.js Bundling Bundled bundle.js localhost:8080 SCRIPT5009 Symbol globalObj.__FABLE_CORE__ Map core.js index.html queue.v1.js:14 Uncaught Error queue.v1.js:109 d3.d_map d3map.fsx:201 d3....
[ 0.00151824951171875, -0.00125885009765625, 0.00335693359375, 0.006195068359375, -0.024658203125, -0.006500244140625, 0.0155029296875, 0.000514984130859375, -0.006134033203125, -0.020751953125, -0.005706787109375, -0.01275634765625, 0.02734375, 0.01953125, 0.0194091796875, 0.00315856933...
[ 563, 2886, 391, 363, 22288, 121413, 1071, 2661, 3742, 104, 28175, 110, 112, 83279, 13794, 15612, 14, 6259, 60270, 71, 6982, 397, 62346, 125378, 57134, 133, 4000, 40294, 4836, 132824, 4283, 1126, 131899, 7964, 46471, 170, 919, 183057, 54003,...
[ 0.11669921875, 0.192626953125, 0.113525390625, 0.23876953125, 0.1602783203125, 0.1826171875, 0.11962890625, 0.1328125, 0.06585693359375, 0.09881591796875, 0.1201171875, 0.0537109375, 0.048126220703125, 0.1009521484375, 0.0270538330078125, 0.039276123046875, 0.053070068359375, 0.067...
embed
10972755_c0
10972755
fsharp
0
Title: Add text to a XML node in F# Problem title: Add text to a XML node in F# Tags: xml, f%23, xmlnode, text Problem: Add text to a XML node in F# This is my XML: <location> <hotspot name="name1" X="444" Y="518" /> <hotspot name="name2" X="542" Y="452" /> <hotspot name="name3" X="356" Y="15" /> </location> what I wan...
Add text to a XML node in F# Add text to a XML node in F# xml f%23 xmlnode text Add XML name1 name2 name3 Add text to a XML node in F# This is my XML: what I want to do is: I'm not able to add the text, no problem with the new node.
[ -0.002166748046875, -0.0026397705078125, 0.00341796875, 0.00021266937255859375, -0.00347900390625, -0.005645751953125, 0.00156402587890625, -0.01953125, -0.000331878662109375, -0.0262451171875, 0.02001953125, -0.007232666015625, 0.00011348724365234375, -0.010009765625, 0.01385498046875, ...
[ 29117, 7986, 47, 92537, 110, 112, 23, 563, 4904, 131492, 1238, 3742, 157, 9351, 304, 363, 3444, 959, 19048, 15190, 2967, 3525, 5 ]
[ 0.138427734375, 0.2283935546875, 0.11279296875, 0.27197265625, 0.1607666015625, 0.177490234375, 0.0318603515625, 0.144775390625, 0.21044921875, 0.1834716796875, 0.049072265625, 0.1260986328125, 0.1322021484375, 0.04742431640625, 0.0276641845703125, 0.071533203125, 0.031829833984375, ...
embed
2400241_c1
2400241
fsharp
1
'<StartupCode$FSharpBugTest>'.$Program::printSomeMessage@3 IL_0016: pop IL_0017: ret } // end of method $Program::.cctor So, its execution result is like this. Is this the F# BUG? Args.Length is not two. Am I missing some grammar or F# characteristic? Or F# builder’s BUG? Code signals: Builder, System, BUG, EntryPoint...
'<StartupCode$FSharpBugTest>'.$Program::printSomeMessage@3 IL_0016: pop IL_0017: ret } // end of method $Program::.cctor So, its execution result is like this. Is this the F# BUG? Args.Length is not two. Am I missing some grammar or F# characteristic? Or F# builder’s BUG? Code signals: Builder, System, BUG, EntryPoint...
[ 0.01318359375, 0.0284423828125, -0.00457763671875, -0.00189971923828125, -0.00775146484375, 0.00927734375, 0.0113525390625, -0.00115203857421875, 0.01031494140625, 0.00482177734375, 0.01116943359375, -0.00013256072998046875, -0.00714111328125, -0.00958251953125, 0.023681640625, 0.00531...
[ 126597, 2037, 114211, 36381, 3467, 254, 7235, 177, 111337, 148968, 35662, 8912, 282, 594, 6011, 429, 981, 363, 30219, 7049, 2485, 7426, 2489, 10267, 3564, 55300, 238, 18770, 6863, 71924, 1830, 16750, 83, 1884, 903, 2071, 70, 563, 4904, 22...
[ 0.09881591796875, 0.06768798828125, 0.16845703125, 0.03240966796875, 0.17041015625, 0.155517578125, 0.1319580078125, 0.0290069580078125, 0.21435546875, 0.145263671875, 0.168701171875, 0.0242919921875, 0.04986572265625, 0.032470703125, 0.1632080078125, 0.0771484375, 0.0133056640625, ...
embed
70442206_c1
70442206
fsharp
1
LOAN: %s" msg | Query(qi) -> let s, case = if (qi.Test(client)) then "yes", qi.Positive else "no", qi.Negative printfn " - %s? %s" qi.Title s testClientTree(client, case) [<EntryPoint>] let main argv = testClientTree(john, tree) 0 Code signals: Reference, Exception, Recursive, Client, Name, Income, YearsInJob, UsesCre...
LOAN: %s" msg | Query(qi) -> let s, case = if (qi.Test(client)) then "yes", qi.Positive else "no", qi.Negative printfn " - %s? %s" qi.Title s testClientTree(client, case) [<EntryPoint>] let main argv = testClientTree(john, tree) 0 Code signals: Reference, Exception, Recursive, Client, Name, Income, YearsInJob, UsesCre...
[ 0.01373291015625, 0.0152587890625, -0.011962890625, 0.0274658203125, 0.0218505859375, -0.000064849853515625, 0.00811767578125, -0.00250244140625, 0.00640869140625, -0.00933837890625, -0.0091552734375, 0.0054931640625, -0.005828857421875, 0.007476806640625, 0.01129150390625, -0.00141906...
[ 22215, 9330, 1745, 68163, 177, 58745, 58836, 53, 10084, 33079, 2633, 91, 7225, 2174, 111337, 222978, 63736, 22788, 7192, 172, 4935, 37076, 157, 6433, 208, 28412, 14783, 16734, 17991, 3034, 150, 2517, 62731, 13, 7768, 15123, 147534, 5201, 79...
[ 0.2174072265625, 0.2288818359375, 0.1044921875, 0.06512451171875, 0.119140625, 0.026641845703125, 0.1883544921875, 0.1588134765625, 0.1666259765625, 0.003753662109375, 0.125, 0.08551025390625, 0.1893310546875, 0.06756591796875, 0.2025146484375, 0.202880859375, 0.1300048828125, 0.13...
embed
47863759_c0
47863759
fsharp
0
Title: When to use `let ... in` to bind variables? Problem title: When to use `let ... in` to bind variables? Tags: functional-programming, f%23, .net Problem: When to use `let ... in` to bind variables? Based on the anwser of "Meaning of keyword “in” in F#": let (x = 2 and y = x + 2) in y + x This will not work the sa...
When to use `let ... in` to bind variables? When to use `let ... in` to bind variables? functional-programming f%23 .net When When to use `let ... in` to bind variables? Based on the anwser of "Meaning of keyword “in” in F#": This will not work the same as In the former case x is only bound after the in keyword. In the...
[ -0.00860595703125, -0.00244140625, 0.00109100341796875, 0.0028839111328125, 0.00982666015625, 0.00433349609375, 0.0033416748046875, 0.01177978515625, 0.015380859375, -0.004058837890625, -0.001129150390625, -0.02001953125, 0.0016326904296875, 0.0152587890625, 0.0191650390625, 0.00625610...
[ 14847, 4527, 1974, 153, 23, 68557, 77336, 47, 123309, 28966, 1238, 3742, 7, 11, 166117, 73, 563, 4904, 4488, 1022, 99091, 7103, 3638, 44679, 91736, 21543, 33662, 159978, 3871, 40140, 678, 64457, 128239 ]
[ 0.10400390625, 0.098876953125, 0.2059326171875, 0.1624755859375, 0.246826171875, 0.2427978515625, 0.25732421875, 0.02252197265625, 0.102783203125, 0.0771484375, 0.001678466796875, 0.0203399658203125, 0.032379150390625, 0.0230560302734375, 0.166015625, 0.199462890625, 0.095703125, 0...
embed
48772019_c1
48772019
fsharp
1
0; 1; 1; 1; 2; 4; 4; 4; 5; 5; 6 |] yesProportions = [| 1/1; 1/2; ;2/3 3/4; 4/6; 4/8; 6/10; 7/11; 7/12; 8/13; 8/14 |] *) I need a new collection generated from iterating through the third array and including the yes and no counts " <= " each of its values. Finally, I need to iterate through this new collection to create...
0; 1; 1; 1; 2; 4; 4; 4; 5; 5; 6 |] yesProportions = [| 1/1; 1/2; ;2/3 3/4; 4/6; 4/8; 6/10; 7/11; 7/12; 8/13; 8/14 |] *) I need a new collection generated from iterating through the third array and including the yes and no counts " <= " each of its values. Finally, I need to iterate through this new collection to create...
[ -0.004608154296875, 0.0179443359375, 0.000957489013671875, -0.01055908203125, -0.0181884765625, -0.004302978515625, -0.01202392578125, -0.0010986328125, 0.0164794921875, 0.031982421875, -0.016845703125, 0.0145263671875, -0.0079345703125, -0.00872802734375, 0.00250244140625, -0.00616455...
[ 757, 74, 106, 116, 201, 190, 305, 58745, 72272, 10752, 4680, 5256, 2203, 142998, 22128, 304, 18113, 83849, 20155, 23538, 12988, 361, 21553, 22875, 382, 50447, 53356, 661, 87, 3871, 3525, 42486, 139392, 17, 67, 98767, 8305, 50960, 10298, 5...
[ 0.146240234375, 0.055938720703125, 0.1025390625, 0.07501220703125, 0.1260986328125, 0.1136474609375, 0.154296875, 0.004974365234375, 0.2330322265625, 0.1209716796875, 0.264892578125, 0.137939453125, 0.0867919921875, 0.1556396484375, 0.148681640625, 0.011749267578125, 0.16552734375, ...
embed
34028823_c1
34028823
fsharp
1
istory_3, Insurance_History_4, Insurance_History_5, Insurance_History_7, Insurance_History_8, Insurance_History_9, Family_Hist_1, Family_Hist_2, Family_Hist_3, Family_Hist_4, Family_Hist_5, Medical_History_1, Medical_History_2, Medical_History_3, Medical_History_4, Medical_History_5, Medical_History_6, Medical_History_...
istory_3, Insurance_History_4, Insurance_History_5, Insurance_History_7, Insurance_History_8, Insurance_History_9, Family_Hist_1, Family_Hist_2, Family_Hist_3, Family_Hist_4, Family_Hist_5, Medical_History_1, Medical_History_2, Medical_History_3, Medical_History_4, Medical_History_5, Medical_History_6, Medical_History_...
[ -0.00775146484375, -0.01129150390625, -0.0146484375, 0.01116943359375, 0.01318359375, -0.0013580322265625, -0.0081787109375, 0.00390625, 0.02392578125, 0.0172119140625, -0.00262451171875, -0.0162353515625, 0.0002956390380859375, 0.00921630859375, -0.0087890625, -0.00136566162109375, ...
[ 17, 86385, 454, 363, 4, 172255, 20861, 617, 758, 966, 1019, 1126, 59745, 841, 1419, 115187, 304, 69292, 910, 963, 1662, 1530, 2681, 2592, 1837, 2485, 2489, 1819, 2947, 1549, 3117, 4015, 3742 ]
[ 0.1185302734375, 0.2330322265625, 0.0872802734375, 0.221923828125, 0.10675048828125, 0.268310546875, 0.1434326171875, 0.1845703125, 0.1468505859375, 0.1197509765625, 0.1370849609375, 0.15576171875, 0.1328125, 0.1461181640625, 0.1285400390625, 0.1455078125, 0.1065673828125, 0.216430...
embed
34779204_c0
34779204
fsharp
0
Title: F sharp method signature Problem title: F sharp method signature Tags: functional-programming, f%23, .net Problem: F sharp method signature What should the first line of a function that returns this value be? val memberof : ’a * ’a list -> bool when ’a : equality I tried the following block to no avail. The code...
F sharp method signature F sharp method signature functional-programming f%23 .net x::xs F sharp method signature What should the first line of a function that returns this value be? I tried the following block to no avail. The code itself works but I get an extra tag when I put in in the interpreter. What I get is How...
[ -0.00146484375, 0.00799560546875, 0.010498046875, 0.005859375, -0.0191650390625, -0.006317138671875, -0.00665283203125, 0.0142822265625, 0.0162353515625, -0.0303955078125, 0.01312255859375, -0.0004100799560546875, 0.0025482177734375, -0.0025787353515625, -0.00335693359375, -0.022583007...
[ 563, 189173, 55300, 138256, 123309, 28966, 1238, 3949, 3742, 1179, 1022, 12, 425, 7, 5608, 70, 5117, 13315, 111, 10, 32354, 450, 30646, 903, 34292, 186, 37842, 25632, 46389, 110, 25820, 18151, 68034, 43240, 4173, 7909, 23, 29481, 56, 2046...
[ 0.1927490234375, 0.26025390625, 0.1971435546875, 0.252685546875, 0.14697265625, 0.08837890625, 0.1116943359375, 0.0491943359375, 0.1409912109375, 0.1148681640625, 0.058197021484375, 0.1536865234375, 0.0894775390625, 0.0386962890625, 0.074462890625, 0.011505126953125, 0.152099609375, ...
embed
37554540_c0
37554540
fsharp
0
Title: F# list to C# IEnumerable: most efficient method? Problem title: F# list to C# IEnumerable: most efficient method? Tags: .net, c%23, f%23, list, seq Problem: F# list to C# IEnumerable: most efficient method? I'm currently working on an F# library with GUI written in C# and I would like to ask what is the best or...
F# list to C# IEnumerable: most efficient method? F# list to C# IEnumerable: most efficient method? .net c%23 f%23 list seq IEnumerable List.toSeq Seq.ofList F# list to C# IEnumerable: most efficient method? I'm currently working on an F# library with GUI written in C# and I would like to ask what is the best or correc...
[ 0.0021820068359375, 0.005126953125, 0.0074462890625, -0.00089263916015625, -0.0004673004150390625, 0.0025177001953125, -0.00185394287109375, 0.0006561279296875, 0.0074462890625, -0.003997802734375, -0.00872802734375, 0.00084686279296875, 0.00145721435546875, 0.026123046875, -0.0022735595...
[ 563, 4904, 5303, 47, 313, 75536, 2606, 56, 2886, 12, 2684, 93766, 55300, 32, 1179, 3742, 1238, 40, 864, 32036, 188, 4233, 503, 4390, 154663, 82424, 20697, 35773, 195490, 59121, 26458, 2965, 26785, 3917, 27875, 79446, 18151, 14037, 17262, ...
[ 0.1656494140625, 0.2332763671875, 0.234619140625, 0.1571044921875, 0.10723876953125, 0.1329345703125, 0.222900390625, 0.156982421875, 0.149169921875, 0.005767822265625, 0.126953125, 0.2276611328125, 0.18310546875, 0.002655029296875, 0.1419677734375, 0.06396484375, 0.1041259765625, ...
embed
78367052_c1
78367052
fsharp
1
. Code signals: user, Credientials, Firebase, SHA1, UserInfo, ImportUserRecordArgs, record.Uid, user.UserId.ToString, GUID, record.Email, user.Email.ToLower, record.PasswordHash, Encoding.UTF8.GetBytes, user.Password, record.PasswordSalt, user.PasswordSalt, record.DisplayName, user.FirstName, user.LastName, record.Emai...
. Code signals: user, Credientials, Firebase, SHA1, UserInfo, ImportUserRecordArgs, record.Uid, user.UserId.ToString, GUID, record.Email, user.Email.ToLower, record.PasswordHash, Encoding.UTF8.GetBytes, user.Password, record.PasswordSalt, user.PasswordSalt, record.DisplayName, user.FirstName, user.LastName, record.Emai...
[ 0.00823974609375, -0.00714111328125, -0.0089111328125, -0.0140380859375, -0.0037841796875, -0.01025390625, 0.005401611328125, 0.0019989013671875, 0.025146484375, -0.01055908203125, -0.0162353515625, -0.0096435546875, 0.010009765625, 0.019775390625, 0.026611328125, -0.01513671875, 0.0...
[ 6, 5, 28864, 26073, 7, 12, 38937, 4, 68523, 14, 80973, 31143, 37382, 92717, 418, 53400, 93147, 92966, 1062, 2189, 32271, 7614, 9405, 17164, 532, 568, 71, 7763, 71713, 214, 195490, 397, 161994, 15363, 6488, 139117, 47416, 6495, 357, 587, ...
[ 0.0740966796875, 0.189453125, 0.2978515625, 0.31298828125, 0.152587890625, 0.097900390625, 0.2310791015625, 0.007659912109375, 0.109619140625, 0.031097412109375, 0.1685791015625, 0.15625, 0.237548828125, 0.193603515625, 0.1177978515625, 0.16162109375, 0.2200927734375, 0.19470214843...
embed
8068040_c1
8068040
fsharp
1
recommended. F# as a Octave/Matlab replacement for Machine Learning : Gustavo has just started a series of blog posts using F# as the development tool. It's great to see many libraries are plugged in together. "Machine Learning in Action" 's samples in F# : Mathias has translated some samples from Python to F#. They a...
recommended. F# as a Octave/Matlab replacement for Machine Learning : Gustavo has just started a series of blog posts using F# as the development tool. It's great to see many libraries are plugged in together. "Machine Learning in Action" 's samples in F# : Mathias has translated some samples from Python to F#. They a...
[ 0.03076171875, 0.0033416748046875, 0.00732421875, 0.00003504753112792969, -0.005889892578125, 0.002655029296875, 0.00396728515625, 0.005645751953125, -0.00799560546875, -0.046142578125, -0.005462646484375, -0.03759765625, 0.00677490234375, -0.0152587890625, 0.0035552978515625, -0.02343...
[ 170198, 563, 4904, 237, 10, 33649, 8216, 64, 79520, 6114, 91995, 674, 100, 68311, 114344, 63691, 31, 26859, 36549, 1415, 32323, 17368, 34754, 55516, 6782, 1957, 5941, 35773, 10484, 76329, 17704, 23, 25842, 4613, 99326, 57945, 121413, 204876, ...
[ 0.1644287109375, 0.1441650390625, 0.2496337890625, 0.0679931640625, 0.0115966796875, 0.1492919921875, 0.220947265625, 0.01171875, 0.0855712890625, 0.1845703125, 0.12646484375, 0.049957275390625, 0.0496826171875, 0.1798095703125, 0.206787109375, 0.163818359375, 0.1439208984375, 0.01...
embed
64378090_c0
64378090
fsharp
0
Title: What is the LINQ to Objects equivalent of F#&#x27;s Seq.cache? Problem title: What is the LINQ to Objects equivalent of F#&#x27;s Seq.cache? Tags: f%23, linq Problem: What is the LINQ to Objects equivalent of F#'s Seq.cache? What is the LINQ to Objects equivalent of F#'s Seq.cache , which does the following: Ret...
What is the LINQ to Objects equivalent of F#&#x27;s Seq.cache? What is the LINQ to Objects equivalent of F#&#x27;s Seq.cache? f%23 linq What LINQ Objects Seq.cache What is the LINQ to Objects equivalent of F#'s Seq.cache? What is the LINQ to Objects equivalent of F#'s Seq.cache , which does the following:
[ 0.02392578125, 0.0234375, -0.00102996826171875, 0.0140380859375, -0.001129150390625, 0.003143310546875, 0.005828857421875, 0.029541015625, 0.0074462890625, -0.04150390625, -0.02734375, 0.01519775390625, 0.0091552734375, 0.0137939453125, 0.002349853515625, 0.005889892578125, -0.026245...
[ 4865, 83, 70, 46610, 2737, 47, 134549, 183234, 563, 4904, 3768, 503, 864, 408, 1430, 1238, 3742, 96, 44982, 7, 5, 3129, 14602, 25632 ]
[ 0.0526123046875, 0.0277252197265625, 0.045684814453125, 0.2080078125, 0.2249755859375, 0.177001953125, 0.2060546875, 0.1961669921875, 0.0860595703125, 0.1480712890625, 0.053131103515625, 0.104736328125, 0.204345703125, 0.1148681640625, 0.1683349609375, 0.07171630859375, 0.10296630859...
embed
73959417_c0
73959417
fsharp
0
Title: How do I make an implementation of List.allPairs with List.map? Problem title: How do I make an implementation of List.allPairs with List.map? Tags: list, f%23 Problem: How do I make an implementation of List.allPairs with List.map? So far, I've made a function which matches all elements of one list with only th...
How do I make an implementation of List.allPairs with List.map? How do I make an implementation of List.allPairs with List.map? list f%23 How List.allPairs List.map lst1 lst2 lst2.Head List.concat How do I make an implementation of List.allPairs with List.map? So far, I've made a function which matches all elements of ...
[ -0.000789642333984375, 0.0177001953125, -0.0016937255859375, 0.0272216796875, -0.01263427734375, 0.0272216796875, -0.015869140625, 0.005523681640625, -0.0013427734375, -0.038818359375, 0.0220947265625, -0.00653076171875, 0.00093841552734375, 0.0103759765625, -0.0069580078125, 0.0030670...
[ 11249, 3249, 208124, 32036, 5584, 8335, 481, 7, 678, 62346, 111, 5, 5303, 1238, 3949, 3742, 271, 418, 304, 5442, 13025, 712, 2271, 4460, 2060, 7228, 32354, 14858, 756, 80854, 1632, 5117, 12830, 15700, 3871, 106, 787, 18151, 33342, 1884, ...
[ 0.0662841796875, 0.094970703125, 0.2061767578125, 0.2587890625, 0.1671142578125, 0.197021484375, 0.2005615234375, 0.05828857421875, 0.126708984375, 0.2406005859375, 0.00518798828125, 0.012298583984375, 0.18701171875, 0.03887939453125, 0.0222015380859375, 0.1397705078125, 0.0501403808...
embed
41848412_c2
41848412
fsharp
2
GL.AttachShader, GL.LinkProgram, Something, Game, GameWindow, GraphicsMode.Default, Sample, base.VSync, VSyncMode.On, attribute_vcol, attribute_vpos, uniform_mview, vbo_col, vbo_pos, vertex_data, Vector3, col_data, mview_data, Matrix4.Identity, Load, Not, o.OnLoad, base.OnLoad, o.Title, Shaders.initShaders, GL.ClearCo...
GL.AttachShader, GL.LinkProgram, Something, Game, GameWindow, GraphicsMode.Default, Sample, base.VSync, VSyncMode.On, attribute_vcol, attribute_vpos, uniform_mview, vbo_col, vbo_pos, vertex_data, Vector3, col_data, mview_data, Matrix4.Identity, Load, Not, o.OnLoad, base.OnLoad, o.Title, Shaders.initShaders, GL.ClearCo...
[ -0.0242919921875, 0.01904296875, -0.00970458984375, -0.020751953125, 0.004180908203125, -0.005035400390625, 0.00634765625, -0.0069580078125, 0.006011962890625, 0.01171875, -0.0115966796875, -0.02490234375, 0.00946044921875, -0.0341796875, -0.00933837890625, -0.000050067901611328125, ...
[ 90799, 5, 28848, 52438, 40798, 820, 4, 64287, 148968, 200905, 13547, 92049, 24293, 189682, 7, 9083, 112, 187423, 11, 7136, 947, 33209, 3647, 856, 217835, 310, 20320, 150380, 13, 334, 8447, 7522, 61514, 39, 22751, 81, 837, 493, 24371, 454,...
[ 0.2376708984375, 0.08624267578125, 0.08782958984375, 0.23095703125, 0.1978759765625, 0.17822265625, 0.0777587890625, 0.19580078125, 0.2098388671875, 0.171142578125, 0.189697265625, 0.1590576171875, 0.1788330078125, 0.232177734375, 0.04833984375, 0.1937255859375, 0.06732177734375, 0...
embed
26064784_c0
26064784
fsharp
0
Title: f# how to filter mixed data type for a specific type Problem title: f# how to filter mixed data type for a specific type Tags: f%23 Problem: f# how to filter mixed data type for a specific type I m trying to filter a mixed data type for a specific type, say float (ideally this would be dynamic though) here my ex...
f# how to filter mixed data type for a specific type f# how to filter mixed data type for a specific type f%23 List.filter a.GetType f# how to filter mixed data type for a specific type I m trying to filter a mixed data type for a specific type, say float (ideally this would be dynamic though) here my example: now this...
[ 0.0155029296875, 0.01531982421875, 0.0037078857421875, -0.00811767578125, 0.006256103515625, -0.016845703125, 0.0179443359375, 0.0078125, 0.021728515625, 0.0128173828125, -0.005523681640625, -0.0341796875, -0.012451171875, -0.0240478515625, -0.0028076171875, 0.0067138671875, 0.028320...
[ 1238, 4904, 3642, 47, 46312, 17664, 297, 2053, 10644, 100, 29458, 3742, 32036, 120337, 10, 724, 126, 196707, 31577, 21917, 257, 122131, 84079, 3688, 27781, 5608, 30646, 1019, 2389, 53855, 89678, 3217, 3034, 3522, 170, 18499, 32354, 111, 6, ...
[ 0.1434326171875, 0.2025146484375, 0.06097412109375, 0.039215087890625, 0.25439453125, 0.2440185546875, 0.12841796875, 0.1378173828125, 0.16748046875, 0.07958984375, 0.1728515625, 0.0885009765625, 0.1114501953125, 0.2008056640625, 0.054351806640625, 0.00872802734375, 0.029388427734375...
embed
2129661_c0
2129661
fsharp
0
Title: F#: Add and remove event handlers Problem title: F#: Add and remove event handlers Tags: event-handling, f%23, silverlight Problem: F#: Add and remove event handlers I'm trying to add & remove an event handler from a Silverlight FrameworkElement, but I just can't get the syntax correct. I want to do something li...
F#: Add and remove event handlers F#: Add and remove event handlers event-handling f%23 silverlight Add Click fe.MouseLeftButtonDown.AddHandler fe.MouseLeftButtonDown.RemoveHandler F#: Add and remove event handlers I'm trying to add & remove an event handler from a Silverlight FrameworkElement, but I just can't get the...
[ -0.0184326171875, 0.0230712890625, 0.0274658203125, -0.0157470703125, -0.026611328125, -0.006591796875, -0.000713348388671875, 0.007232666015625, 0.00775146484375, -0.04345703125, 0.0022735595703125, -0.000579833984375, -0.016357421875, 0.02880859375, 0.0157470703125, -0.00921630859375...
[ 563, 4904, 29117, 136, 87388, 19732, 35863, 7, 12, 54885, 1238, 3949, 3742, 115392, 20016, 21138, 3820, 51483, 2480, 82212, 8331, 7710, 284, 4028, 135679, 603, 432, 272, 31577, 15190, 619, 142, 1295, 57035, 202220, 647, 19929, 70, 6002, 8...
[ 0.0970458984375, 0.1546630859375, 0.1605224609375, 0.1168212890625, 0.1937255859375, 0.1802978515625, 0.285888671875, 0.0909423828125, 0.013763427734375, 0.209716796875, 0.070068359375, 0.002288818359375, 0.1190185546875, 0.1700439453125, 0.22607421875, 0.186767578125, 0.107788085937...
embed
27404047_c0
27404047
fsharp
0
Title: Read list of int from Console Problem title: Read list of int from Console Tags: f%23 Problem: Read list of int from Console Here is what I want: let rec getList (cnt:int, acc: int list): int list = if cnt = 0 then acc else let n = Console.ReadLine() |> int getList (cnt-1) n::acc And call it like this: getList 1...
Read list of int from Console Read list of int from Console f%23 Console Read cnt:int Console.ReadLine cnt-1 n::acc Read list of int from Console Here is what I want: And call it like this: To read 10 integers from standard input and return list of 10 integers. But I get the error: Why ?
[ -0.0186767578125, 0.005615234375, 0.0018463134765625, 0.019287109375, -0.00008153915405273438, 0.005523681640625, 0.008544921875, -0.006591796875, 0.00421142578125, -0.041259765625, 0.0074462890625, -0.004669189453125, -0.00604248046875, 0.01239013671875, 0.0234375, -0.01239013671875, ...
[ 4764, 5303, 111, 23, 18, 1295, 1657, 40777, 1238, 3949, 3742, 660, 4288, 31345, 93232, 5759, 653, 10060, 3444, 11782, 1884, 717, 12301, 209, 892, 26255, 5570, 107730, 136, 30646, 4966, 2046, 18499, 44084 ]
[ 0.1929931640625, 0.179443359375, 0.0885009765625, 0.1141357421875, 0.1563720703125, 0.129150390625, 0.0980224609375, 0.2337646484375, 0.061859130859375, 0.051666259765625, 0.155517578125, 0.14013671875, 0.1900634765625, 0.1778564453125, 0.1083984375, 0.127197265625, 0.075439453125, ...
embed
23628985_c1
23628985
fsharp
1
token_stream -> // some code | token_stream -> None, token_stream But I don't think such a thing is possible in F#. I would even accept a design in which I have to call a specific "ChainN" active pattern where N is the number of element I want to parse, but I don't know how to design such a function if it is possible....
token_stream -> // some code | token_stream -> None, token_stream But I don't think such a thing is possible in F#. I would even accept a design in which I have to call a specific "ChainN" active pattern where N is the number of element I want to parse, but I don't know how to design such a function if it is possible....
[ -0.00183868408203125, 0.0135498046875, -0.0047607421875, 0.0079345703125, -0.00616455078125, 0.015869140625, -0.0024261474609375, -0.0225830078125, 0.00946044921875, -0.0311279296875, 0.01165771484375, 0.010498046875, -0.000293731689453125, 0.006256103515625, 0.01220703125, 0.001258850...
[ 47, 1098, 86429, 33079, 4666, 3060, 18151, 438, 86, 18, 5351, 6044, 13580, 83, 7722, 23, 563, 4904, 26946, 4331, 11782, 29458, 62467, 73, 839, 36457, 103510, 541, 14012, 12830, 3444, 366, 184, 3714, 32354, 67660, 48225, 162520, 28864, 260...
[ 0.173583984375, 0.243896484375, 0.3037109375, 0.009124755859375, 0.052886962890625, 0.0648193359375, 0.197509765625, 0.10528564453125, 0.150634765625, 0.04296875, 0.05914306640625, 0.02276611328125, 0.0198211669921875, 0.037811279296875, 0.1585693359375, 0.051361083984375, 0.13769531...
embed
40888712_c1
40888712
fsharp
1
) = let newEntries = match (start1, end1, start2, end2) with | Some(sta1), Some(end1), Some(sta2), Some(end2) -> entries.[sta1 .. end1, sta2 .. end2] | Some(sta1), Some(end1), Some(sta2), None -> entries.[sta1 .. end1, sta2 .. ] (...) new Matrix(entries), which would necessitate 16 pattern cases and is thus somewhat in...
) = let newEntries = match (start1, end1, start2, end2) with | Some(sta1), Some(end1), Some(sta2), Some(end2) -> entries.[sta1 .. end1, sta2 .. end2] | Some(sta1), Some(end1), Some(sta2), None -> entries.[sta1 .. end1, sta2 .. ] (...) new Matrix(entries), which would necessitate 16 pattern cases and is thus somewhat in...
[ 0.0036163330078125, 0.01507568359375, 0.031494140625, -0.0019378662109375, -0.01123046875, -0.00109100341796875, -0.0224609375, 0.01385498046875, 0.018798828125, 0.033935546875, 0.007080078125, 0.025390625, -0.007232666015625, 0.000720977783203125, 0.002197265625, 0.003021240234375, ...
[ 1388, 2203, 2633, 3525, 7768, 18, 10484, 14858, 17137, 418, 3564, 4034, 304, 10461, 678, 31384, 590, 17727, 3611, 4, 33079, 112820, 1468, 1924, 438, 194234, 2517, 2806, 106919, 611, 103510, 50218, 208806, 192206, 99156, 35829, 209303, 21647, ...
[ 0.054656982421875, 0.0771484375, 0.128662109375, 0.1806640625, 0.138671875, 0.1982421875, 0.18896484375, 0.20849609375, 0.1309814453125, 0.05908203125, 0.1170654296875, 0.132080078125, 0.099365234375, 0.094482421875, 0.048858642578125, 0.127685546875, 0.0921630859375, 0.05450439453...
embed
14839312_c0
14839312
fsharp
0
Title: Pattern matching list tail tuple element Problem title: Pattern matching list tail tuple element Tags: algorithm, compression, f%23 Problem: Pattern matching list tail tuple element I have some Run Length Encoding code that I wrote as an exercise let rle s = s |> List.map (fun x -> (x, 1)) |> List.fold (fun acc ...
Pattern matching list tail tuple element Pattern matching list tail tuple element algorithm compression f%23 Pattern List.map List.fold x.ToString n.ToString Pattern matching list tail tuple element I have some Run Length Encoding code that I wrote as an exercise The pattern h::(x, n) -> h::(x, n+1) fails to compile. D...
[ 0.000820159912109375, 0.019775390625, -0.005218505859375, 0.007171630859375, -0.00154876708984375, -0.00170135498046875, -0.01202392578125, -0.00469970703125, 0.025146484375, 0.0115966796875, 0.017578125, -0.00726318359375, 0.01611328125, 0.0042724609375, -0.00933837890625, -0.00381469...
[ 9876, 22766, 14858, 214, 5303, 46741, 370, 8705, 12830, 234873, 375, 48448, 1238, 3949, 3742, 32036, 62346, 42822, 1022, 7763, 71713, 653, 28398, 77554, 357, 587, 6238, 18151, 54397, 237, 81979, 103510, 1096, 12, 425, 33079, 21748, 35782, 7...
[ 0.1480712890625, 0.1077880859375, 0.1766357421875, 0.0259246826171875, 0.137451171875, 0.2213134765625, 0.0950927734375, 0.17578125, 0.134765625, 0.1678466796875, 0.11572265625, 0.17822265625, 0.06060791015625, 0.008514404296875, 0.099853515625, 0.111083984375, 0.0830078125, 0.1247...
embed
17170748_c0
17170748
fsharp
0
Title: F# Type Providers very very slow build Problem title: F# Type Providers very very slow build Tags: type-providers, f%23, .net Problem: F# Type Providers very very slow build I'm playing around with Type Providers, specifically the sql entity framework type provider. I'm writing tests against a database that has ...
F# Type Providers very very slow build F# Type Providers very very slow build type-providers f%23 .net Type Providers F# Type Providers very very slow build I'm playing around with Type Providers, specifically the sql entity framework type provider. I'm writing tests against a database that has a LOT of objects, and it...
[ 0.01287841796875, 0.013916015625, -0.00933837890625, -0.01202392578125, -0.019775390625, 0.00191497802734375, -0.0213623046875, -0.00921630859375, -0.0020294189453125, -0.034912109375, -0.00121307373046875, -0.004974365234375, 0.00140380859375, 0.0128173828125, 0.011962890625, 0.014343...
[ 563, 4904, 60457, 123089, 4295, 4552, 72803, 45367, 10644, 93136, 14202, 1238, 3742, 1179, 75169, 10932, 99247, 77630, 170846, 81450, 32562, 109921, 26548, 63399, 115447, 36746, 148814, 94878, 10176, 11907, 13452, 51776, 5915, 1733, 40368, 14633,...
[ 0.11376953125, 0.1856689453125, 0.2110595703125, 0.160888671875, 0.051239013671875, 0.0780029296875, 0.1719970703125, 0.1640625, 0.189453125, 0.1502685546875, 0.02606201171875, 0.053985595703125, 0.04638671875, 0.1009521484375, 0.046630859375, 0.0235137939453125, 0.1292724609375, 0...
embed
51014993_c0
51014993
fsharp
0
Title: Generate k fold Cross validation sets F# Problem title: Generate k fold Cross validation sets F# Tags: fold, f%23 Problem: Generate k fold Cross validation sets F# I would like to know how to generate k fold cross validation sets. I would like to know if it can be done through a higher order function such as fol...
Generate k fold Cross validation sets F# Generate k fold Cross validation sets F# fold f%23 Generate Cross Matrix DenseMatrix Double Generate k fold Cross validation sets F# I would like to know how to generate k fold cross validation sets. I would like to know if it can be done through a higher order function such as ...
[ 0.00408935546875, 0.003570556640625, 0.01373291015625, -0.0179443359375, 0.005645751953125, -0.0150146484375, -0.0069580078125, -0.01397705078125, -0.00133514404296875, -0.00848388671875, -0.000038623809814453125, 0.000286102294921875, -0.01129150390625, 0.00151824951171875, -0.013488769...
[ 155370, 67, 472, 42822, 47832, 44622, 1363, 5423, 563, 4904, 1238, 3742, 194234, 1575, 184, 4613, 87427, 107172, 1884, 3714, 3642, 47, 139392, 6, 41421, 831, 16940, 8305, 77546, 12989, 32354, 71864, 195625, 28090, 50944, 425, 10298, 138, 16...
[ 0.175537109375, 0.06341552734375, 0.1961669921875, 0.251708984375, 0.1903076171875, 0.2274169921875, 0.0872802734375, 0.224609375, 0.04400634765625, 0.07574462890625, 0.03179931640625, 0.0933837890625, 0.17236328125, 0.1580810546875, 0.07183837890625, 0.027099609375, 0.05596923828125...
embed
38938501_c0
38938501
fsharp
0
Title: What kind of type is this? Problem title: What kind of type is this? Tags: f%23, suave Problem: What kind of type is this? I just started working through Tamizhvendan S' book F# Applied and came across this code snippet: type WebPart = Context -> Async<Context option> I've been looking through Microsoft's F# doc...
What kind of type is this? What kind of type is this? f%23 suave What WebPart Context Async Fun Profit What kind of type is this? I just started working through Tamizhvendan S' book F# Applied and came across this code snippet: I've been looking through Microsoft's F# docs as well as my favorite F# site, Scott Wlaschin...
[ -0.002655029296875, -0.0002651214599609375, -0.0010986328125, -0.0001773834228515625, -0.0089111328125, 0.009521484375, -0.017333984375, -0.00074005126953125, 0.00021457672119140625, -0.007781982421875, -0.00732421875, -0.004180908203125, -0.01239013671875, -0.00732421875, 0.011657714843...
[ 4865, 8562, 10644, 83, 903, 1238, 3949, 3742, 109829, 4002, 58229, 1657, 22829, 62, 12654, 238, 28670, 114609, 111, 1218, 3930, 1353, 549, 159, 12877, 563, 4904, 5659, 71516, 36880, 18151, 93, 7244, 4439, 40304, 50695, 66624, 100, 136, 91...
[ 0.069580078125, 0.17822265625, 0.2357177734375, 0.1075439453125, 0.1849365234375, 0.12890625, 0.0628662109375, 0.1502685546875, 0.267333984375, 0.100341796875, 0.1856689453125, 0.05487060546875, 0.171142578125, 0.03094482421875, 0.1932373046875, 0.0880126953125, 0.208984375, 0.2548...
embed
17748820_c0
17748820
fsharp
0
Title: Is it possible to composite functions but keeps currying? Problem title: Is it possible to composite functions but keeps currying? Tags: f%23 Problem: Is it possible to composite functions but keeps currying? For example, I can do this: let mutable divide = fun (a,b) -> a / b let checkZero (a,b) = if b = 0 then ...
Is it possible to composite functions but keeps currying? Is it possible to composite functions but keeps currying? f%23 How Is it possible to composite functions but keeps currying? For example, I can do this: But what if I want to form a currying function: Can I do that?
[ -0.01519775390625, 0.003997802734375, 0.00762939453125, 0.00104522705078125, 0.01239013671875, 0.0166015625, 0.00130462646484375, -0.0166015625, 0.01055908203125, -0.0240478515625, -0.005523681640625, 0.0234375, -0.0096435546875, 0.01336669921875, -0.004974365234375, -0.021240234375, ...
[ 2071, 442, 7722, 47, 375, 77087, 13, 32354, 7, 1284, 13695, 198555, 214, 831, 54, 903, 3444, 3173, 4171 ]
[ 0.055908203125, 0.06610107421875, 0.162109375, 0.053741455078125, 0.10284423828125, 0.198974609375, 0.0909423828125, 0.176513671875, 0.04412841796875, 0.117919921875, 0.1494140625, 0.1998291015625, 0.10546875, 0.048919677734375, 0.006500244140625, 0.00750732421875, 0.037139892578125,...
embed
53734577_c0
53734577
fsharp
0
Title: F# List of Tuples Problem title: F# List of Tuples Tags: f%23-interactive, f%23 Problem: F# List of Tuples I have this tuple list: test = [(1,2,3);(2,3,4);(3,4,5);(1,5,6);(2,6,7);(3,7,8);(1,8,9);(2,9,10);(3,10,11);(1,11,12)] I have tried test |> List.Filter (fun (x,_,_) -> x = 1) to filter out the tuple which ha...
F# List of Tuples F# List of Tuples f%23-interactive f%23 List Tuples List.Filter F# List of Tuples I have this tuple list: I have tried test |> List.Filter (fun (x,_,_) -> x = 1) to filter out the tuple which has 1 as the first element but the return would be [(1,2,3);(1,5,6);(1,8,9);(1,11,12)] What can I add test |> ...
[ 0.0034027099609375, 0.02783203125, 0.00003838539123535156, 0.015625, 0.00299072265625, -0.0198974609375, -0.01092529296875, 0.0166015625, 0.015625, 0.01422119140625, -0.005279541015625, 0.00072479248046875, -0.0177001953125, 0.0247802734375, -0.0020751953125, 0.017578125, 0.032714843...
[ 563, 4904, 32036, 1371, 99726, 111, 1238, 27495, 10433, 71232, 3949, 3742, 919, 379, 87, 765, 903, 370, 8705, 5303, 37842, 3034, 5, 720, 16498, 425, 454, 33079, 1022, 2203, 4879, 46312, 1810, 1556, 106, 237, 5117, 12830, 1284, 30646, 28...
[ 0.140380859375, 0.189697265625, 0.181640625, 0.1458740234375, 0.2020263671875, 0.0255584716796875, 0.09307861328125, 0.069091796875, 0.0703125, 0.026947021484375, 0.012939453125, 0.0894775390625, 0.04791259765625, 0.1817626953125, 0.017578125, 0.039825439453125, 0.061279296875, 0.1...
embed
69983518_c0
69983518
fsharp
0
Title: F#|Fable - Thoth Decode Auto with generics Problem title: F#|Fable - Thoth Decode Auto with generics Tags: fable-f%23, f%23 Problem: F#|Fable - Thoth Decode Auto with generics I have a function that looks vaguely like this let decodeData<'a> (encodedData: string) = Decode.Auto.fromString<'a>(encodedData) If I do...
F#|Fable - Thoth Decode Auto with generics F#|Fable - Thoth Decode Auto with generics fable-f%23 f%23 Fable Thoth Decode Auto Decode.Auto.fromString Cannot F#|Fable - Thoth Decode Auto with generics I have a function that looks vaguely like this If I do decodeData<String[]> , then while the code compiles, at runtime I ...
[ -0.0086669921875, 0.0264892578125, -0.00445556640625, 0.0123291015625, -0.00167083740234375, -0.0026702880859375, 0.0169677734375, 0.01177978515625, 0.0025634765625, -0.01104736328125, -0.00982666015625, -0.049072265625, 0.0050048828125, 0.001953125, -0.0026397705078125, -0.01232910156...
[ 563, 4904, 58745, 919, 2886, 20, 32238, 927, 262, 40899, 4396, 678, 189534, 1071, 2661, 420, 3742, 1238, 38115, 161063, 71713, 4171, 10869, 7, 32354, 33342, 307, 6261, 1884, 903, 8, 137989, 214, 12960, 18151, 9969, 1340, 11675, 6032, 7418...
[ 0.1190185546875, 0.146484375, 0.032867431640625, 0.123046875, 0.1654052734375, 0.003387451171875, 0.167724609375, 0.1937255859375, 0.1685791015625, 0.209228515625, 0.218017578125, 0.11181640625, 0.26611328125, 0.12646484375, 0.1268310546875, 0.07183837890625, 0.08319091796875, 0.07...
embed
716452_c0
716452
fsharp
0
Title: F# array_chunk for Sequence Problem title: F# array_chunk for Sequence Tags: arrays, sequence, f%23, chunking Problem: F# array_chunk for Sequence I'm having some trouble making a sequence. Basically I need to chop a sequence into a sequence of arrays. Seq.windowed almost does it but I don't want duplicate eleme...
F# array_chunk for Sequence F# array_chunk for Sequence arrays sequence f%23 chunking array_chunk Sequence a:int Array.init a.Length Array.sub Seq.to_array F# array_chunk for Sequence I'm having some trouble making a sequence. Basically I need to chop a sequence into a sequence of arrays. Seq.windowed almost does it bu...
[ 0.0076904296875, 0.01055908203125, 0.01495361328125, -0.004608154296875, -0.01300048828125, -0.01611328125, -0.003814697265625, -0.02099609375, -0.006011962890625, -0.0027313232421875, -0.011474609375, 0.039794921875, -0.0252685546875, 0.004425048828125, 0.0157470703125, -0.01611328125...
[ 563, 4904, 10298, 53, 454, 206, 3678, 100, 503, 944, 3956, 4778, 40, 1238, 3949, 3742, 7839, 6048, 10, 12, 4288, 69253, 73, 217, 449, 5, 22144, 864, 188, 19305, 87, 19441, 63134, 20662, 12506, 3871, 6, 82335, 3934, 111, 50777, 2600, ...
[ 0.112548828125, 0.185546875, 0.1878662109375, 0.1173095703125, 0.04058837890625, 0.1287841796875, 0.242919921875, 0.1202392578125, 0.1158447265625, 0.1785888671875, 0.18115234375, 0.09063720703125, 0.108154296875, 0.0914306640625, 0.043487548828125, 0.1512451171875, 0.2301025390625, ...
embed
57688807_c1
57688807
fsharp
1
... how will the function "know" which item to act on (it's supposed to act on the item itself)? The this keyword is not allowed when implementing a function when "instantiating" a record (i.e. no {...handleDevalue = fun this -> <some implementation code here> ). I could remember to define the function on every item I ...
... how will the function "know" which item to act on (it's supposed to act on the item itself)? The this keyword is not allowed when implementing a function when "instantiating" a record (i.e. no {...handleDevalue = fun this -> <some implementation code here> ). I could remember to define the function on every item I ...
[ -0.01092529296875, -0.0045166015625, -0.0147705078125, 0.005462646484375, -0.003753662109375, 0.021240234375, -0.01385498046875, -0.005706787109375, 0.032958984375, -0.0026702880859375, 0.014404296875, 0.0054931640625, -0.015869140625, 0.0169677734375, 0.0006256103515625, 0.00020027160...
[ 3642, 1221, 32354, 69723, 58, 3129, 35735, 47, 27992, 98, 134598, 68034, 903, 166117, 83, 959, 107003, 29479, 143034, 14, 26518, 17164, 110, 79628, 152108, 50770, 7477, 208124, 18151, 37629, 61924, 11907, 28282, 10644, 5426, 92940, 3444, 9969...
[ 0.0772705078125, 0.053131103515625, 0.2161865234375, 0.1859130859375, 0.011932373046875, 0.036468505859375, 0.19091796875, 0.016876220703125, 0.1544189453125, 0.1524658203125, 0.1038818359375, 0.0867919921875, 0.1063232421875, 0.2169189453125, 0.005035400390625, 0.09637451171875, 0.1...
embed
19469252_c0
19469252
fsharp
0
Title: Convert integer list to a string Problem title: Convert integer list to a string Tags: f%23 Problem: Convert integer list to a string I am trying to achieve the following. Input is list [8;9;4;5;7] and output should be "8,9,4,5,7," Note the "," in the output I tried the following let rec ConvertToString list = m...
Convert integer list to a string Convert integer list to a string f%23 Convert ConvertToString head.ToString Convert integer list to a string I am trying to achieve the following. Input is list [8;9;4;5;7] and output should be "8,9,4,5,7," Note the "," in the output I tried the following But the output which i get is v...
[ -0.01611328125, -0.00799560546875, 0.00775146484375, 0.032958984375, -0.0145263671875, 0.0179443359375, -0.00555419921875, 0.005706787109375, -0.0016937255859375, 0.01324462890625, -0.0037078857421875, -0.02734375, 0.0115966796875, 0.0286865234375, -0.0025482177734375, -0.0155029296875...
[ 1657, 11549, 892, 1505, 5303, 47, 10, 79315, 1238, 3949, 3742, 7763, 71713, 214, 10336, 31577, 69307, 25632, 360, 7077, 1019, 1126, 617, 758, 966, 140992, 5608, 186, 145180, 80389, 18622, 70, 44, 4, 23, 37842, 2046, 3502, 163, 2203, 189...
[ 0.041259765625, 0.14599609375, 0.1505126953125, 0.1468505859375, 0.2431640625, 0.13916015625, 0.07989501953125, 0.281494140625, 0.0894775390625, 0.04498291015625, 0.1734619140625, 0.1435546875, 0.1424560546875, 0.10400390625, 0.211669921875, 0.091064453125, 0.0849609375, 0.03182983...
embed
2928288_c0
2928288
fsharp
0
Title: F# match char values Problem title: F# match char values Tags: f%23 Problem: F# match char values I'm trying to match an integer expression against character literals, and the compiler complains about type mismatch. let rec read file includepath = let ch = ref 0 let token = ref 0 use stream = File.OpenText file ...
F# match char values F# match char values f%23 File.OpenText stream.Read F# match char values I'm trying to match an integer expression against character literals, and the compiler complains about type mismatch. ch has to be an int because that's what stream.Read returns in order to use -1 as end of file marker. If I r...
[ -0.000400543212890625, -0.01434326171875, 0.014404296875, 0.002593994140625, 0.002655029296875, -0.01397705078125, 0.00506591796875, -0.0023040771484375, -0.00970458984375, 0.0174560546875, 0.01708984375, 0.017578125, -0.020751953125, 0.0023956298828125, -0.00031280517578125, -0.024780...
[ 563, 4904, 14858, 21441, 142424, 1238, 3949, 3742, 42724, 103264, 174379, 75973, 31345, 31577, 892, 1505, 125195, 26548, 62816, 15659, 16765, 4, 9969, 34759, 186992, 10644, 1239, 98753, 3863, 1556, 47, 186, 142, 23, 18, 5, 30646, 4527, 6894...
[ 0.1639404296875, 0.23095703125, 0.2325439453125, 0.2213134765625, 0.2120361328125, 0.1129150390625, 0.008331298828125, 0.1697998046875, 0.139892578125, 0.155029296875, 0.1654052734375, 0.1845703125, 0.2220458984375, 0.0750732421875, 0.1209716796875, 0.1048583984375, 0.20068359375, ...
embed
12405416_c0
12405416
fsharp
0
Title: Is it possible for an object to access private field / function of another object of same class? Problem title: Is it possible for an object to access private field / function of another object of same class? Tags: f%23 Problem: Is it possible for an object to access private field / function of another object of...
Is it possible for an object to access private field / function of another object of same class? Is it possible for an object to access private field / function of another object of same class? f%23 c.A Is it possible for an object to access private field / function of another object of same class? I know this is possi...
[ 0.00125885009765625, 0.0024261474609375, 0.01373291015625, 0.0223388671875, 0.0027923583984375, -0.01611328125, -0.01025390625, 0.00145721435546875, 0.0068359375, -0.0194091796875, 0.0062255859375, 0.0286865234375, 0.007476806640625, 0.003631591796875, 0.01470947265625, -0.036865234375...
[ 2071, 442, 7722, 36746, 47, 17203, 14375, 44457, 248, 32354, 111, 15700, 5701, 18507, 32, 100, 142, 1238, 3949, 3742, 284, 903, 83, 23, 313, 4904, 3129, 27489, 8781, 93766, 18151, 32964, 831, 12638, 3789, 63920, 1650, 37202, 69201, 563, ...
[ 0.06689453125, 0.06988525390625, 0.1937255859375, 0.20947265625, 0.07598876953125, 0.1885986328125, 0.212158203125, 0.18798828125, 0.04315185546875, 0.1578369140625, 0.036224365234375, 0.1142578125, 0.1416015625, 0.1510009765625, 0.0186767578125, 0.041778564453125, 0.0032958984375, ...
embed
14457571_c0
14457571
fsharp
0
Title: What is the purpose of flexible type annotation in F#? Problem title: What is the purpose of flexible type annotation in F#? Tags: f%23, functional-programming, .net, f%23-3.0 Problem: What is the purpose of flexible type annotation in F#? I'm studying F# and I don't understand the purpose of flexible types, or ...
What is the purpose of flexible type annotation in F#? What is the purpose of flexible type annotation in F#? f%23 functional-programming .net f%23-3.0 What TextOfControl Control c.Text System.Windows.Forms.Control What is the purpose of flexible type annotation in F#? I'm studying F# and I don't understand the purpose...
[ 0.0230712890625, 0.0152587890625, 0.00555419921875, 0.006805419921875, -0.0009307861328125, -0.01708984375, 0.00168609619140625, 0.01544189453125, 0.01055908203125, 0.01031494140625, 0.01409912109375, -0.03466796875, 0, 0.00025177001953125, -0.01434326171875, 0.00311279296875, 0.0125...
[ 4865, 70, 60042, 110677, 10644, 8668, 22062, 23, 563, 4904, 1238, 3742, 123309, 28966, 1179, 132265, 24129, 132887, 175904, 27131, 174379, 43342, 102973, 83, 111, 28219, 52895, 60212, 17721, 32562, 903, 7440, 12353, 18507 ]
[ 0.0236968994140625, 0.03228759765625, 0.160888671875, 0.26171875, 0.21240234375, 0.1630859375, 0.1207275390625, 0.04449462890625, 0.1077880859375, 0.1817626953125, 0.0391845703125, 0.014678955078125, 0.0838623046875, 0.029510498046875, 0.074462890625, 0.045013427734375, 0.12780761718...
embed
52907551_c0
52907551
fsharp
0
Title: How to check the element is a member in f#? Problem title: How to check the element is a member in f#? Tags: f%23 Problem: How to check the element is a member in f#? I am trying to compare list x with list S, if list x has all or some of the elements of S then the value is true else false. If x and S are empty ...
How to check the element is a member in f#? How to check the element is a member in f#? f%23 How e1::rest1 e2::rest2 rest1 rest2 How to check the element is a member in f#? I am trying to compare list x with list S, if list x has all or some of the elements of S then the value is true else false. If x and S are empty t...
[ -0.0123291015625, 0.0030059814453125, 0.010986328125, 0.0086669921875, -0.00823974609375, -0.0000629425048828125, 0.00372314453125, -0.0002307891845703125, 0.0052490234375, 0.0263671875, 0.03564453125, 0.0206298828125, 0.0205078125, -0.000484466552734375, 0.0086669921875, -0.0095825195...
[ 11249, 47, 12765, 12830, 83, 10, 32786, 23, 1238, 4904, 70, 3742, 28, 82825, 56644, 418, 304, 10588, 31577, 69101, 5303, 1022, 678, 159, 1556, 756, 80854, 34292, 29568, 98320, 136, 201505, 29479, 25632, 18151, 2886, 9969, 29806 ]
[ 0.077392578125, 0.0841064453125, 0.22412109375, 0.230224609375, 0.131103515625, 0.110107421875, 0.278076171875, 0.08929443359375, 0.1585693359375, 0.213623046875, 0.024688720703125, 0.1064453125, 0.0845947265625, 0.04864501953125, 0.146240234375, 0.0289459228515625, 0.09344482421875,...
embed
3738650_c0
3738650
fsharp
0
Title: Can F# modules be monkey-patched? Problem title: Can F# modules be monkey-patched? Tags: extension-methods, monkeypatching, module, f%23 Problem: Can F# modules be monkey-patched? Quick question. I just read that if you wanted to add a function to e.g. the List module, you can define a new List module with that ...
Can F# modules be monkey-patched? Can F# modules be monkey-patched? extension-methods monkeypatching module f%23 Can List Can F# modules be monkey-patched? Quick question. I just read that if you wanted to add a function to e.g. the List module, you can define a new List module with that function: Does this have the ef...
[ -0.01495361328125, 0.00180816650390625, 0.007354736328125, 0.006500244140625, 0.00152587890625, 0.004241943359375, -0.0019989013671875, 0.0012054443359375, -0.00421142578125, -0.002593994140625, 0.01007080078125, -0.0106201171875, -0.01092529296875, 0.005523681640625, 0.01806640625, -0...
[ 4171, 563, 4904, 88996, 2667, 19770, 4453, 74694, 7, 186, 111938, 1928, 7352, 59207, 1238, 3742, 32036, 9, 36663, 15190, 32354, 61924, 3525, 21543, 154107, 5775, 31, 5201, 143726, 9803, 158189, 3796, 110912, 214, 150624, 9790, 9969, 34759 ]
[ 0.056671142578125, 0.1312255859375, 0.197998046875, 0.2008056640625, 0.08331298828125, 0.1766357421875, 0.1143798828125, 0.1070556640625, 0.0238189697265625, 0.044952392578125, 0.1385498046875, 0.0030517578125, 0.053863525390625, 0.09417724609375, 0.043426513671875, 0.0216064453125, ...
embed
74902250_c0
74902250
fsharp
0
Title: Should async F# functions include an Async ending like we add in C#? Problem title: Should async F# functions include an Async ending like we add in C#? Tags: f%23, asynchronous Problem: Should async F# functions include an Async ending like we add in C#? I've been working with the task{} computations in a bunch...
Should async F# functions include an Async ending like we add in C#? Should async F# functions include an Async ending like we add in C#? f%23 asynchronous an Should Async Task Should async F# functions include an Async ending like we add in C#? I've been working with the task{} computations in a bunch of F# functions....
[ 0.005828857421875, 0.008544921875, 0.0216064453125, -0.0034332275390625, -0.001983642578125, 0.002593994140625, -0.00982666015625, 0.00970458984375, 0.009765625, 0.01531982421875, 0.015625, 0.00732421875, -0.0002117156982421875, 0.0115966796875, 0.0230712890625, 0.00543212890625, 0.0...
[ 151117, 10, 12654, 238, 563, 4904, 32354, 26698, 62, 86658, 1884, 15190, 1238, 3949, 3742, 101966, 142, 9598, 92, 313, 20697, 66211, 181135, 147306, 18151, 9351, 12638, 55300, 30646, 618, 678, 3564, 5299, 170920, 101805, 17569, 114122, 6635, ...
[ 0.10400390625, 0.04290771484375, 0.2320556640625, 0.1470947265625, 0.142822265625, 0.2154541015625, 0.1981201171875, 0.0794677734375, 0.07354736328125, 0.1854248046875, 0.05999755859375, 0.1058349609375, 0.0806884765625, 0.0240478515625, 0.13671875, 0.14306640625, 0.018798828125, 0...
embed
2705972_c0
2705972
fsharp
0
Title: Remove a single non-unique value from a sequence in F# Problem title: Remove a single non-unique value from a sequence in F# Tags: f%23 Problem: Remove a single non-unique value from a sequence in F# I have a sequence of integers representing dice in F#. In the game in question, the player has a pool of dice and...
Remove a single non-unique value from a sequence in F# Remove a single non-unique value from a sequence in F# f%23 a Remove Seq.filter Remove a single non-unique value from a sequence in F# I have a sequence of integers representing dice in F#. In the game in question, the player has a pool of dice and can choose to pl...
[ -0.00811767578125, 0.024658203125, -0.00213623046875, -0.0079345703125, 0.0008392333984375, -0.004547119140625, 0.006011962890625, 0.0017242431640625, 0.0157470703125, -0.00897216796875, -0.00188446044921875, 0.0224609375, -0.00714111328125, 0.01434326171875, 0.0059814453125, 0.0281982...
[ 181139, 11001, 351, 34, 45602, 34292, 1295, 40, 944, 3956, 563, 4904, 23, 1238, 3949, 3742, 503, 864, 120337, 892, 26255, 33636, 13747, 360, 6712, 58585, 19361, 831, 55076, 11301, 1632, 168080, 91736, 13695, 10588, 21972, 305, 136, 201, 2...
[ 0.1541748046875, 0.1719970703125, 0.1348876953125, 0.09039306640625, 0.1893310546875, 0.1988525390625, 0.1063232421875, 0.080810546875, 0.1658935546875, 0.1268310546875, 0.138427734375, 0.2188720703125, 0.0369873046875, 0.037628173828125, 0.007659912109375, 0.1014404296875, 0.0718994...
embed
42074884_c0
42074884
fsharp
0
Title: Add recursive function to class as member Problem title: Add recursive function to class as member Tags: f%23, functional-programming Problem: Add recursive function to class as member I'm having trouble adding a recursive function to a class. I can declare the function private no problem above my member declara...
Add recursive function to class as member Add recursive function to class as member f%23 functional-programming Add this.rec x::xt Add recursive function to class as member I'm having trouble adding a recursive function to a class. I can declare the function private no problem above my member declarations using let. Bu...
[ -0.007232666015625, 0.01611328125, 0.0308837890625, 0.00238037109375, -0.007659912109375, 0.0002498626708984375, -0.005340576171875, 0.010498046875, 0.01434326171875, -0.039794921875, 0.0184326171875, -0.0133056640625, 0.02978515625, 0.00970458984375, 0.030029296875, -0.029541015625, ...
[ 29117, 195625, 5844, 32354, 47, 18507, 237, 32786, 3949, 3742, 123309, 28966, 903, 31688, 29062, 63134, 154107, 831, 159978, 14375, 2967, 36917, 21635, 2633, 9790, 3249, 3835, 17368, 14602, 959, 9969, 1340, 26785, 27798, 177953, 1118, 16454, ...
[ 0.15185546875, 0.2357177734375, 0.1981201171875, 0.2249755859375, 0.1588134765625, 0.2130126953125, 0.155029296875, 0.283203125, 0.0142364501953125, 0.0899658203125, 0.14208984375, 0.0718994140625, 0.1063232421875, 0.1185302734375, 0.1300048828125, 0.08856201171875, 0.1534423828125, ...
embed
19316518_c0
19316518
fsharp
0
Title: Password Mode of TextBox in F# Problem title: Password Mode of TextBox in F# Tags: f%23, winforms Problem: Password Mode of TextBox in F# I am developing an windows application in F#. In the application I have to show the TextBox mode in Password Format . What is the code for using the password mode of TextBox i...
Password Mode of TextBox in F# Password Mode of TextBox in F# f%23 winforms Password Mode TextBox Format Top Left txtpwd.PasswordChar Password Mode of TextBox in F# I am developing an windows application in F#. In the application I have to show the TextBox mode in Password Format . What is the code for using the passwo...
[ 0.01397705078125, -0.004669189453125, 0.0218505859375, 0.0003948211669921875, 0.0078125, -0.00982666015625, 0.021728515625, 0.005401611328125, 0.006927490234375, -0.0010223388671875, 0.01031494140625, -0.025390625, -0.005584716796875, 0.017333984375, -0.00060272216796875, 0.00041770935...
[ 170461, 36024, 111, 24129, 72295, 23, 563, 4904, 1238, 3949, 3742, 148, 46334, 60972, 4792, 2480, 124326, 37281, 139117, 47416, 84068, 168698, 54825, 38415, 7639, 70, 13736, 18151, 17368, 78506, 190659, 25632, 28090, 36917, 7986, 11728, 44116, ...
[ 0.2384033203125, 0.1939697265625, 0.040496826171875, 0.178466796875, 0.263427734375, 0.039459228515625, 0.1300048828125, 0.222900390625, 0.06195068359375, 0.001800537109375, 0.082763671875, 0.006866455078125, 0.1552734375, 0.1712646484375, 0.045440673828125, 0.04937744140625, 0.11047...
embed
5726566_c0
5726566
fsharp
0
Title: Seq.iter vs for - what difference? Problem title: Seq.iter vs for - what difference? Tags: f%23 Problem: Seq.iter vs for - what difference? I can do for event in linq.Deltas do or I can do linq.Deltas |> Seq.iter(fun event -> So I'm not sure if that is the same. If that is not the same I want to know the differe...
Seq.iter vs for - what difference? Seq.iter vs for - what difference? f%23 Seq.iter linq.Deltas Seq.iter vs for - what difference? I can do or I can do So I'm not sure if that is the same. If that is not the same I want to know the difference. I don't know what to use: iter or for . added - so if that is the matter of ...
[ 0.0059814453125, 0.0010223388671875, 0.016845703125, -0.004547119140625, -0.037353515625, -0.01483154296875, 0.00201416015625, 0.006805419921875, -0.01611328125, -0.0458984375, -0.004486083984375, 0.024658203125, 0.00701904296875, 0.01806640625, 0.00726318359375, -0.00653076171875, -...
[ 503, 864, 16840, 20209, 100, 20, 2367, 60212, 5, 1238, 3742, 96, 44982, 58598, 1073, 831, 54, 707, 87, 9077, 5701, 3714, 4527, 17, 720, 49814, 44126, 12601, 2663, 17366, 170224, 14432, 16487, 1884, 83, 22288, 997, 124962, 3917, 11675, 1...
[ 0.09991455078125, 0.17724609375, 0.27197265625, 0.1749267578125, 0.2181396484375, 0.01763916015625, 0.07586669921875, 0.216064453125, 0.013519287109375, 0.00946044921875, 0.093994140625, 0.00360107421875, 0.1304931640625, 0.0958251953125, 0.1427001953125, 0.1251220703125, 0.091918945...
embed
63023591_c0
63023591
fsharp
0
Title: optimizing indices with array math in F# Problem title: optimizing indices with array math in F# Tags: f%23, optimization, arrays Problem: optimizing indices with array math in F# I have code like this: let mutable j = 0 while j < i - 1 do psi.[j] <- phi.[j] phi.[i - 1] <- phi.[i - 1] - psi.[j] * cov.[i - j - 1]...
optimizing indices with array math in F# optimizing indices with array math in F# f%23 optimization arrays optimizing indices with array math in F# I have code like this: Since the loop is moving through the arrays one element at a time, is there a way to make this faster in F#, like with incremented pointers in C/C++?...
[ -0.0037994384765625, -0.0016326904296875, -0.00701904296875, 0.001800537109375, -0.00946044921875, -0.0162353515625, -0.01348876953125, 0.0050048828125, 0.0159912109375, 0.0008697509765625, -0.0033111572265625, 0.026123046875, -0.01458740234375, -0.02490234375, 0.0026702880859375, -0.0...
[ 15572, 84382, 136044, 7, 678, 10298, 53, 48909, 23, 563, 4904, 1238, 3949, 3742, 87235, 1363, 4778, 18151, 1884, 903, 40956, 98567, 8305, 1632, 12830, 10, 1733, 3917, 3249, 4271, 56, 6, 158661, 6275, 1314, 313, 64, 37223, 66596, 70, 456...
[ 0.168212890625, 0.0648193359375, 0.255126953125, 0.05645751953125, 0.1043701171875, 0.181884765625, 0.1263427734375, 0.1885986328125, 0.049560546875, 0.17724609375, 0.222900390625, 0.11376953125, 0.00311279296875, 0.12255859375, 0.182861328125, 0.016357421875, 0.1278076171875, 0.14...
embed
63862679_c0
63862679
fsharp
0
Title: Filter list with Union Type Problem title: Filter list with Union Type Tags: f%23 Problem: Filter list with Union Type I am new in F# and fp. I try to filter a list with the discriminated union type as parameter. In my example, I want everyone who has type A. How could I solve this, or is that a bad approach? ty...
Filter list with Union Type Filter list with Union Type f%23 Filter Union Type List.filter Error Filter list with Union Type I am new in F# and fp. I try to filter a list with the discriminated union type as parameter. In my example, I want everyone who has type A. How could I solve this, or is that a bad approach? Tha...
[ -0.01385498046875, 0.017578125, 0.02197265625, -0.004180908203125, 0.00057220458984375, -0.0191650390625, -0.006378173828125, 0.0140380859375, 0.005828857421875, -0.006072998046875, 0.00970458984375, -0.00031280517578125, 0.0167236328125, 0.02001953125, -0.0072021484375, -0.00131988525...
[ 128896, 5303, 678, 32528, 60457, 1238, 3949, 3742, 32036, 120337, 212059, 3525, 563, 4904, 136, 254, 9790, 46312, 55970, 3674, 69941, 10644, 237, 171859, 27781, 3444, 30309, 2750, 1556, 62, 86869, 6494, 51515 ]
[ 0.2413330078125, 0.1810302734375, 0.086669921875, 0.26171875, 0.21484375, 0.07781982421875, 0.055450439453125, 0.1258544921875, 0.1451416015625, 0.1795654296875, 0.1678466796875, 0.04931640625, 0.1009521484375, 0.1776123046875, 0.03082275390625, 0.06536865234375, 0.03131103515625, ...
embed
39190310_c0
39190310
fsharp
0
Title: FParsec parse unordered clauses Problem title: FParsec parse unordered clauses Tags: fparsec, f%23 Problem: FParsec parse unordered clauses I want to parse some grammar like the following OUTPUT data GROUPBY key TO location USING object the order of the GROUPBY TO USING clauses is allowed to vary, but each claus...
FParsec parse unordered clauses FParsec parse unordered clauses fparsec f%23 FParsec OUTPUT GROUPBY USING FParsec parse unordered clauses I want to parse some grammar like the following the order of the GROUPBY TO USING clauses is allowed to vary, but each clause can occur at most once. Is there a convenient or built-i...
[ 0.006439208984375, 0.0233154296875, -0.0031280517578125, 0.0003204345703125, -0.0234375, 0.01251220703125, -0.015380859375, -0.02978515625, 0.01434326171875, 0.005126953125, -0.020263671875, 0.00927734375, 0.0245361328125, 0.00860595703125, -0.029052734375, 0.029052734375, -0.0155639...
[ 563, 28636, 39797, 366, 184, 51, 80596, 297, 70731, 1238, 2500, 3742, 52001, 124599, 177314, 36354, 345, 90, 3444, 122092, 147, 25632, 12989, 111, 9926, 111848, 107003, 47, 285, 53, 12638, 831, 74918, 2684, 24145, 142267, 88303, 73, 3917, ...
[ 0.1407470703125, 0.183349609375, 0.26025390625, 0.1767578125, 0.1298828125, 0.0966796875, 0.2086181640625, 0.0755615234375, 0.2027587890625, 0.0885009765625, 0.069091796875, 0.093505859375, 0.107177734375, 0.022430419921875, 0.157470703125, 0.1846923828125, 0.07177734375, 0.0510864...
embed
56270372_c0
56270372
fsharp
0
Title: F# Array.tryFindIndex start search from an index Problem title: F# Array.tryFindIndex start search from an index Tags: f%23 Problem: F# Array.tryFindIndex start search from an index I wonder if there's a cheap(performance wise) option to search an index of array element which meets certain criteria starting from...
F# Array.tryFindIndex start search from an index F# Array.tryFindIndex start search from an index f%23 an Array.tryFindIndex F# Array.tryFindIndex start search from an index I wonder if there's a cheap(performance wise) option to search an index of array element which meets certain criteria starting from an index? Arra...
[ -0.005767822265625, 0.0211181640625, 0.00634765625, -0.00064849853515625, -0.0137939453125, -0.0277099609375, 0.0179443359375, -0.000667572021484375, 0.01153564453125, -0.023193359375, 0.0087890625, 0.019287109375, -0.020751953125, 0.02197265625, 0.02783203125, -0.002410888671875, 0....
[ 563, 4904, 69253, 53, 15123, 204582, 4153, 39659, 4034, 33938, 1295, 142, 63262, 1238, 3742, 32195, 64720, 5037, 35829, 47, 111, 10298, 12830, 23356, 24233, 55738, 72134, 5, 55300, 18, 765, 10750, 5809, 44024, 132, 19, 135587, 28282, 100, ...
[ 0.0902099609375, 0.1243896484375, 0.1278076171875, 0.121826171875, 0.2147216796875, 0.2083740234375, 0.1351318359375, 0.2646484375, 0.14453125, 0.2359619140625, 0.1484375, 0.0152740478515625, 0.26806640625, 0.0540771484375, 0.1102294921875, 0.029754638671875, 0.177734375, 0.0689697...
embed
53899699_c0
53899699
fsharp
0
Title: Is it possible to get a literal from the JsonProvider? Problem title: Is it possible to get a literal from the JsonProvider? Tags: .net, .net-standard, f%23 Problem: Is it possible to get a literal from the JsonProvider? type ConnectionStrings = JsonProvider<"devAppsettings.json"> let rtDb = ConnectionStrings.Ge...
Is it possible to get a literal from the JsonProvider? Is it possible to get a literal from the JsonProvider? .net .net-standard f%23 the JsonProvider ConnectionStrings devAppsettings.json ConnectionStrings.GetSample ConnectionStrings.DefaultConnection Is it possible to get a literal from the JsonProvider? I am trying ...
[ -0.00689697265625, 0.01263427734375, -0.014892578125, 0.0111083984375, -0.0216064453125, 0.0018768310546875, -0.0040283203125, -0.0035552978515625, 0.004669189453125, -0.0296630859375, -0.0012664794921875, 0.0155029296875, 0.00689697265625, -0.0240478515625, -0.00164031982421875, 0.009...
[ 2071, 442, 7722, 2046, 10, 15659, 289, 1295, 821, 1681, 177997, 62160, 47, 1179, 66589, 1238, 3949, 3742, 62448, 71713, 5180, 33245, 39179, 89840, 170, 33209, 187423, 11, 7136, 235603, 31577, 59102, 94878, 79315, 1647, 11435, 99247, 10770, ...
[ 0.0262451171875, 0.035186767578125, 0.175537109375, 0.1170654296875, 0.055816650390625, 0.208984375, 0.189208984375, 0.1260986328125, 0.1549072265625, 0.208984375, 0.170166015625, 0.165771484375, 0.0047607421875, 0.1319580078125, 0.1524658203125, 0.05206298828125, 0.0277557373046875,...
embed
24137032_c0
24137032
fsharp
0
Title: F# and negative match Problem title: F# and negative match Tags: pattern-matching, f%23 Problem: F# and negative match I have a discriminated type: type Item = | Normal of string * float32 | Special1 of Item | Special2 of Item And I have a function using this type: let rec calcItem (i: Item ) = match i with | No...
F# and negative match F# and negative match pattern-matching f%23 Item Normal float32 Special1 Special2 F# and negative match I have a discriminated type: And I have a function using this type: In my case, the Special_ n types will be defined in the same form. So I am wondering if it is possible to use wildcard pattern...
[ -0.00970458984375, -0.00433349609375, -0.007568359375, -0.01336669921875, 0.002532958984375, -0.00567626953125, -0.00145721435546875, 0.01043701171875, 0.01251220703125, 0.0017547607421875, 0.03759765625, -0.029296875, 0.0054931640625, -0.000926971435546875, 0.007232666015625, -0.00170...
[ 563, 4904, 136, 40907, 14858, 103510, 98753, 1238, 3949, 3742, 78426, 28723, 21917, 6460, 25132, 418, 304, 55970, 3674, 10644, 32354, 17368, 454, 653, 52895, 61924, 5701, 3173, 7722, 4527, 56409, 38931, 756, 6097, 101, 14602, 959, 4488, 269...
[ 0.117919921875, 0.2078857421875, 0.06048583984375, 0.2137451171875, 0.210205078125, 0.1856689453125, 0.1708984375, 0.0888671875, 0.0406494140625, 0.1107177734375, 0.1260986328125, 0.066650390625, 0.0986328125, 0.1131591796875, 0.12060546875, 0.00604248046875, 0.0361328125, 0.144409...
embed
36700000_c1
36700000
fsharp
1
course I wonder, how a .jpg in the same path as the rest can cause a security error in google chrome. Also, I wonder if I have a chance to make it run in google chrome, somehow... I also tried other locations for the mandel.jpg, for example next to the ...min.js file. But all locations produced the same error. Code si...
course I wonder, how a .jpg in the same path as the rest can cause a security error in google chrome. Also, I wonder if I have a chance to make it run in google chrome, somehow... I also tried other locations for the mandel.jpg, for example next to the ...min.js file. But all locations produced the same error. Code si...
[ 0.004425048828125, 0.004669189453125, -0.0013885498046875, -0.03173828125, -0.0103759765625, 0.0301513671875, 0.005615234375, 0.00897216796875, 0.0023956298828125, -0.045654296875, -0.00433349609375, 0.00982666015625, -0.003021240234375, -0.0003490447998046875, 0.0155029296875, 0.01452...
[ 15411, 32195, 3642, 10, 6, 5, 25687, 23, 5701, 60875, 237, 10588, 831, 22304, 48031, 18499, 26484, 17656, 13450, 18227, 3249, 442, 11675, 209303, 37842, 3789, 31913, 100, 70, 332, 1743, 11737, 153, 1249, 28175, 11435, 756, 181653, 28864, ...
[ 0.14453125, 0.0889892578125, 0.051116943359375, 0.039886474609375, 0.0157928466796875, 0.08880615234375, 0.283203125, 0.0858154296875, 0.118896484375, 0.2237548828125, 0.029296875, 0.1199951171875, 0.0643310546875, 0.103271484375, 0.2183837890625, 0.20068359375, 0.1158447265625, 0....
embed
76401776_c0
76401776
fsharp
0
Title: Why does ImmutableDictionary.GetValueOrDefault return null here? Problem title: Why does ImmutableDictionary.GetValueOrDefault return null here? Tags: f%23 Problem: Why does ImmutableDictionary.GetValueOrDefault return null here? Here is some code using ImmutableDictionary : open System.Collections.Immutable let...
Why does ImmutableDictionary.GetValueOrDefault return null here? Why does ImmutableDictionary.GetValueOrDefault return null here? f%23 Why ImmutableDictionary.GetValueOrDefault ImmutableDictionary System.Collections.Immutable ImmutableDictionary.Create dict.Add dict.GetValueOrDefault Why does ImmutableDictionary.GetVal...
[ 0.00726318359375, 0.0003337860107421875, 0.01123046875, 0.003143310546875, -0.0272216796875, -0.003997802734375, 0.00836181640625, -0.0302734375, -0.01190185546875, 0.0291748046875, 0.01470947265625, 0.0169677734375, -0.019775390625, 0.0147705078125, 0.025634765625, -0.00750732421875, ...
[ 44084, 3370, 561, 22819, 14055, 10763, 6635, 126, 856, 50770, 19060, 187423, 11, 7136, 30646, 56574, 3688, 724, 3742, 12353, 8996, 61637, 61669, 4028, 18151, 17368, 140992, 83, 139550, 959, 50878, 169 ]
[ 0.1240234375, 0.0860595703125, 0.148193359375, 0.1905517578125, 0.044708251953125, 0.1192626953125, 0.05682373046875, 0.06976318359375, 0.1068115234375, 0.15234375, 0.164306640625, 0.091796875, 0.12744140625, 0.10394287109375, 0.1728515625, 0.230712890625, 0.07073974609375, 0.01771...
embed
39919408_c0
39919408
fsharp
0
Title: F#: how to obtain a char type expression with an int type input Problem title: F#: how to obtain a char type expression with an int type input Tags: char, f%23, int Problem: F#: how to obtain a char type expression with an int type input I'm trying to write a simple code that has int type as input variables and ...
F#: how to obtain a char type expression with an int type input F#: how to obtain a char type expression with an int type input char f%23 int F#: how to obtain a char type expression with an int type input I'm trying to write a simple code that has int type as input variables and gives me a char type output variable de...
[ 0.007049560546875, -0.0128173828125, 0.0033721923828125, 0.0155029296875, 0.0111083984375, -0.002288818359375, 0.00014209747314453125, -0.0036773681640625, -0.00811767578125, 0.03955078125, -0.00133514404296875, -0.01123046875, 0.01116943359375, 0.0126953125, -0.01409912109375, 0.00364...
[ 563, 4904, 3642, 113054, 21441, 10644, 125195, 678, 23, 18, 107730, 1238, 3949, 3742, 31577, 33022, 8781, 18151, 77336, 140992, 96819, 142424, 43240, 162515, 106, 27781, 876, 501, 19 ]
[ 0.07623291015625, 0.160400390625, 0.0347900390625, 0.12841796875, 0.1617431640625, 0.165771484375, 0.2078857421875, 0.079345703125, 0.0894775390625, 0.1275634765625, 0.1533203125, 0.042022705078125, 0.0009765625, 0.0992431640625, 0.0274810791015625, 0.039947509765625, 0.0411682128906...
embed
66089019_c1
66089019
fsharp
1
versions more recent than 3.1.200): { "sdk": { "version": "3.1.200", "rollForward": "latestFeature" } } Which of these would be recommended for Saturn? UPDATE Looks like there's a pull-request regarding this issue: https://github.com/SaturnFramework/Saturn.Template/pull/29 UPDATE 2021-02-10 The above mentioned pull re...
versions more recent than 3.1.200): { "sdk": { "version": "3.1.200", "rollForward": "latestFeature" } } Which of these would be recommended for Saturn? UPDATE Looks like there's a pull-request regarding this issue: https://github.com/SaturnFramework/Saturn.Template/pull/29 UPDATE 2021-02-10 The above mentioned pull re...
[ -0.00909423828125, 0.018798828125, 0.0118408203125, -0.01348876953125, -0.016357421875, -0.0206298828125, -0.0005950927734375, 0.000629425048828125, 0.000774383544921875, 0.0286865234375, -0.004608154296875, -0.01141357421875, -0.00775146484375, 0.0024566650390625, 0.01483154296875, 0....
[ 11389, 7, 1286, 17309, 45151, 5, 5955, 5740, 58, 10666, 46354, 97109, 27722, 18537, 19364, 12, 143, 6954, 30154, 11, 6644, 6097, 2806, 186, 170198, 100, 118651, 161521, 1884, 25, 50065, 75616, 118861, 903, 31089, 15769, 32102, 294, 16989, ...
[ 0.2152099609375, 0.0833740234375, 0.012115478515625, 0.1439208984375, 0.18115234375, 0.06024169921875, 0.2156982421875, 0.206298828125, 0.006622314453125, 0.0052490234375, 0.242431640625, 0.203125, 0.2005615234375, 0.151611328125, 0.261474609375, 0.0223388671875, 0.090576171875, 0....
embed
73170801_c1
73170801
fsharp
1
= StackStack.create capacity } let test () = printfn "State" let mutable c = Context.create 10 c.Stack1.Push 1 c.Stack1.Push 2 c.Stack1.Push 3 while c.Stack1.Count > 0 do let next = c.Stack1.Pop() printfn $"NextValue: {next}" test () Code signals: InvalidProgramException, CLR, ByRefLike, Context, System, System.Runtim...
= StackStack.create capacity } let test () = printfn "State" let mutable c = Context.create 10 c.Stack1.Push 1 c.Stack1.Push 2 c.Stack1.Push 3 while c.Stack1.Count > 0 do let next = c.Stack1.Pop() printfn $"NextValue: {next}" test () Code signals: InvalidProgramException, CLR, ByRefLike, Context, System, System.Runtim...
[ 0.00323486328125, 0.0257568359375, -0.005859375, 0.03271484375, -0.00909423828125, -0.01129150390625, -0.016845703125, -0.00384521484375, 0.000614166259765625, -0.01220703125, -0.0001277923583984375, 0.0252685546875, -0.00250244140625, -0.00787353515625, 0.00628662109375, -0.0036621093...
[ 2203, 6512, 2594, 42378, 7612, 2182, 177399, 2633, 3034, 28412, 14783, 135206, 13, 842, 22819, 501, 1657, 22829, 209, 683, 33768, 106, 138, 108210, 977, 757, 11737, 127642, 3650, 81280, 856, 50770, 86, 29062, 28864, 26073, 7013, 148968, 639...
[ 0.055328369140625, 0.1707763671875, 0.1641845703125, 0.2303466796875, 0.1556396484375, 0.08489990234375, 0.267333984375, 0.1201171875, 0.269287109375, 0.1878662109375, 0.1435546875, 0.2052001953125, 0.1083984375, 0.1195068359375, 0.1427001953125, 0.04327392578125, 0.050872802734375, ...
embed
1190780_c0
1190780
fsharp
0
Title: no easy way with records in F#? Problem title: no easy way with records in F#? Tags: f%23, instantiation, record Problem: no easy way with records in F#? In F# I can do this: type coord = float * float //Type for a 2D-float-tupple let myDepthCurve1 = { coords = [(1., 2.); (3., 4.)]; depth = 9.4 } but I can't do ...
no easy way with records in F#? no easy way with records in F#? f%23 instantiation record Type myDepthCurve1 no easy way with records in F#? In F# I can do this: but I can't do this: Is it true that I can't create my depthurve in one go when the fields in the coord type record are labeled?
[ 0.00714111328125, 0.0042724609375, 0.004638671875, 0.003173828125, 0.0130615234375, -0.01458740234375, 0.0042724609375, 0.00787353515625, 0.01104736328125, -0.016845703125, 0.006011962890625, -0.01104736328125, 0.023681640625, 0.0029449462890625, 0.0206298828125, 0.004913330078125, 0...
[ 110, 23468, 3917, 678, 115923, 23, 563, 4904, 1238, 3742, 34648, 14, 17164, 60457, 759, 4657, 254, 927, 33177, 37879, 418, 360, 831, 1284, 18, 903, 29568, 28282, 168867, 474, 272, 1632, 738, 44457, 552, 6651, 10644, 67967, 297 ]
[ 0.051422119140625, 0.11767578125, 0.099853515625, 0.0926513671875, 0.2490234375, 0.06317138671875, 0.140625, 0.2310791015625, 0.0875244140625, 0.117919921875, 0.0787353515625, 0.08123779296875, 0.1939697265625, 0.1153564453125, 0.1185302734375, 0.1510009765625, 0.165283203125, 0.08...
embed
3640792_c0
3640792
fsharp
0
Title: F# Recursion termination Problem title: F# Recursion termination Tags: recursion, f%23 Problem: F# Recursion termination I have been reading alot about functional programming and f#. I have a snippet of code that I cannot understand. I am familiar with recursive programs but this particular code is bugging me op...
F# Recursion termination F# Recursion termination recursion f%23 Recursion System F# Recursion termination I have been reading alot about functional programming and f#. I have a snippet of code that I cannot understand. I am familiar with recursive programs but this particular code is bugging me In this snippet of code...
[ 0.007568359375, 0.0274658203125, 0.0181884765625, 0.0072021484375, 0.009033203125, 0.00860595703125, -0.00262451171875, 0.00860595703125, -0.012451171875, -0.0224609375, 0.01190185546875, -0.0125732421875, -0.0238037109375, 0.0001964569091796875, 0.0341796875, -0.0133056640625, 0.025...
[ 563, 4904, 165428, 42, 6889, 29527, 1363, 195625, 1830, 1238, 3949, 3742, 12353, 16454, 818, 123309, 56037, 93, 58134, 18151, 53418, 28219, 16031, 5844, 103391, 903, 17311, 373, 36659, 163, 110, 7440, 121011, 90, 70, 43852, 1528, 3714, 3229...
[ 0.1351318359375, 0.2025146484375, 0.177978515625, 0.18359375, 0.1629638671875, 0.2183837890625, 0.049072265625, 0.25146484375, 0.012298583984375, 0.1187744140625, 0.1295166015625, 0.1812744140625, 0.150634765625, 0.0193939208984375, 0.018768310546875, 0.1622314453125, 0.0831298828125...
embed
4119296_c0
4119296
fsharp
0
Title: What exactly is &quot;bigint&quot; in F#? Problem title: What exactly is &quot;bigint&quot; in F#? Tags: f%23 Problem: What exactly is "bigint" in F#? I understand that bigint is not a function but rather a type constructor. That's why this fails: // Won't compile let foo = 10 |> bigint I understand that I can c...
What exactly is &quot;bigint&quot; in F#? What exactly is &quot;bigint&quot; in F#? f%23 What Won What exactly is "bigint" in F#? I understand that bigint is not a function but rather a type constructor. That's why this fails: I understand that I can create a new function which accepts an integer and returns a bigint ,...
[ 0.00115966796875, 0.006317138671875, 0.004547119140625, -0.0062255859375, 0.00970458984375, 0.0128173828125, 0.005706787109375, -0.006805419921875, -0.016357421875, -0.0157470703125, -0.00830078125, 0.00180816650390625, -0.0052490234375, 0.00714111328125, -0.01458740234375, 0.003341674...
[ 4865, 66161, 83, 41502, 32976, 4288, 1230, 23, 563, 4904, 1238, 3742, 104525, 44, 58, 28219, 6957, 959, 32354, 43257, 10644, 64549, 748, 15400, 35782, 7, 831, 28282, 3525, 26946, 892, 1505, 30646, 137158, 2256, 39933, 4488, 43240, 3871, 6...
[ 0.0802001953125, 0.1370849609375, 0.0919189453125, 0.0430908203125, 0.193115234375, 0.305419921875, 0.009002685546875, 0.0682373046875, 0.117431640625, 0.2034912109375, 0.083740234375, 0.0975341796875, 0.1239013671875, 0.00067138671875, 0.016265869140625, 0.0721435546875, 0.175048828...
embed
29665666_c0
29665666
fsharp
0
Title: Designing with types and integer constraints in F# Problem title: Designing with types and integer constraints in F# Tags: ocaml, f%23 Problem: Designing with types and integer constraints in F# How can I design an integer type in F# that initialize to 0 and have some method that always increase the value monoto...
Designing with types and integer constraints in F# Designing with types and integer constraints in F# ocaml f%23 Designing TERM Designing with types and integer constraints in F# How can I design an integer type in F# that initialize to 0 and have some method that always increase the value monotonically, i.e. first cal...
[ -0.00299072265625, 0.008544921875, -0.0076904296875, 0.02783203125, 0.00994873046875, -0.008056640625, 0.00063323974609375, -0.00138092041015625, -0.006439208984375, -0.0196533203125, -0.0008087158203125, 0.026123046875, -0.0206298828125, 0.0159912109375, 0.011474609375, 0.008056640625...
[ 11724, 678, 52895, 136, 892, 1505, 158, 2816, 4288, 563, 4904, 36, 9779, 141, 1238, 3949, 3742, 173724, 831, 87, 4331, 10644, 23, 450, 61475, 20650, 47, 757, 765, 3060, 55300, 11343, 51312, 34292, 182902, 5117, 11782, 70, 30646, 106, 17...
[ 0.2025146484375, 0.0654296875, 0.2088623046875, 0.07940673828125, 0.150634765625, 0.150390625, 0.067626953125, 0.1563720703125, 0.121826171875, 0.14404296875, 0.223388671875, 0.080078125, 0.09228515625, 0.08843994140625, 0.04547119140625, 0.00018310546875, 0.09820556640625, 0.19287...
embed
55210223_c1
55210223
fsharp
1
}; var db = c.Create(); db.Users.Add(user); db.SaveChanges(); How can I make my F# look like it's not setting the Id ? Since this isn't a record type (CLIMutable, I think), I've tried User (Name = "bork") but that also fails with the same error. I'm new to F# too, so let me know if my F# could be cleaner. Code signals...
}; var db = c.Create(); db.Users.Add(user); db.SaveChanges(); How can I make my F# look like it's not setting the Id ? Since this isn't a record type (CLIMutable, I think), I've tried User (Name = "bork") but that also fails with the same error. I'm new to F# too, so let me know if my F# could be cleaner. Code signals...
[ 0.00897216796875, 0.0125732421875, 0.02099609375, -0.0001697540283203125, -0.00177764892578125, 0.01708984375, -0.01019287109375, -0.01141357421875, 0.01483154296875, -0.0142822265625, -0.01416015625, 0.0301513671875, 0.004302978515625, 0.0087890625, 0.020751953125, -0.0126953125, -0...
[ 285, 40041, 2203, 501, 63784, 2182, 1062, 7, 1314, 4028, 65918, 5464, 272, 127008, 11249, 831, 3249, 563, 4904, 6713, 1884, 959, 53550, 70, 24799, 17164, 10644, 83318, 34, 22819, 37842, 53400, 163612, 3422, 92, 35782, 18499, 3525, 46622, ...
[ 0.0291900634765625, 0.1531982421875, 0.0045166015625, 0.0213775634765625, 0.07666015625, 0.010711669921875, 0.0799560546875, 0.0943603515625, 0.054962158203125, 0.1109619140625, 0.1826171875, 0.0259552001953125, 0.017120361328125, 0.0889892578125, 0.07904052734375, 0.05340576171875, ...
embed
23153409_c0
23153409
fsharp
0
Title: F# passing an array to attribute Problem title: F# passing an array to attribute Tags: f%23 Problem: F# passing an array to attribute In C# I can do this: [InlineData(new [] { "foo" })] When I try to do this in F#: [<InlineData([| "foo" |])>] It gives me a compile error: This is not a valid constant expression o...
F# passing an array to attribute F# passing an array to attribute f%23 InlineData InlineDataAttribute F# passing an array to attribute In C# I can do this: When I try to do this in F#: It gives me a compile error: Am I doing something wrong or does F# not support arrays as attribute parameters? UPDATE The issue seems r...
[ 0.005340576171875, 0.003509521484375, -0.02880859375, -0.007720947265625, -0.037841796875, -0.01318359375, 0.00860595703125, -0.01153564453125, -0.000560760498046875, -0.00860595703125, 0.00921630859375, 0.0111083984375, -0.00007677078247070312, 0.020751953125, -0.014404296875, -0.0117...
[ 563, 4904, 452, 6953, 10298, 53, 47, 150380, 13, 1238, 3949, 3742, 360, 2256, 137989, 191145, 313, 831, 54, 903, 9790, 76199, 163, 9969, 1340, 18499, 20594, 44691, 959, 8060, 4778, 237, 171859, 161521, 31089, 37202, 62548, 70, 138256, 692...
[ 0.18115234375, 0.240234375, 0.150634765625, 0.0277252197265625, 0.22412109375, 0.1690673828125, 0.156982421875, 0.271240234375, 0.146484375, 0.1224365234375, 0.016876220703125, 0.1553955078125, 0.081298828125, 0.174560546875, 0.10986328125, 0.111328125, 0.04107666015625, 0.02604675...
embed
35442213_c0
35442213
fsharp
0
Title: Using signature file in script Problem title: Using signature file in script Tags: f%23, f%23-interactive Problem: Using signature file in script I like using .fsi signature files to control visibility. However, if I have both Foo.fsi and Foo.fs files in my solution, and #load "Foo.fs" in a script, it doesn't se...
Using signature file in script Using signature file in script f%23 f%23-interactive Using Foo.fsi Foo.fs Using signature file in script I like using .fsi signature files to control visibility. However, if I have both Foo.fsi and Foo.fs files in my solution, and #load "Foo.fs" in a script, it doesn't seem like the corre...
[ 0.0220947265625, 0.00176239013671875, -0.0274658203125, 0.005126953125, -0.01904296875, -0.0174560546875, 0.007720947265625, 0.007598876953125, 0.0118408203125, -0.01263427734375, -0.005218505859375, 0.003265380859375, -0.01806640625, 0.01544189453125, -0.0012359619140625, -0.017333984...
[ 345, 138256, 11435, 23, 26499, 3742, 27495, 10433, 71232, 9572, 31, 420, 172, 17447, 1884, 17368, 102158, 6226, 108625, 939, 15044, 5, 136, 29806, 63033, 27591, 18, 42518, 11814, 87, 54, 104851, 96276, 170198, 69307, 11522, 15787, 8999, 280...
[ 0.046600341796875, 0.22900390625, 0.1690673828125, 0.009185791015625, 0.23828125, 0.0396728515625, 0.030548095703125, 0.047149658203125, 0.038330078125, 0.1485595703125, 0.1763916015625, 0.1334228515625, 0.2041015625, 0.1815185546875, 0.0869140625, 0.04248046875, 0.1546630859375, 0...
embed
16527524_c0
16527524
fsharp
0
Title: if requires an else clause Problem title: if requires an else clause Tags: semantics, f%23 Problem: if requires an else clause I have essentially the following code in a function, and I would like to eliminate the duplication of doSomethingElse() : fun a -> if a = b then let c = expensiveOperation() if c = d the...
if requires an else clause if requires an else clause semantics f%23 if requires an else clause I have essentially the following code in a function, and I would like to eliminate the duplication of doSomethingElse() : I think I should be able to eliminate both else clauses. and let it return either result or doSomethin...
[ 0.0001621246337890625, 0.01055908203125, 0.00799560546875, 0.01904296875, 0.01470947265625, -0.00183868408203125, 0.006683349609375, -0.0021820068359375, 0.004425048828125, -0.0036163330078125, -0.004547119140625, 0.00003123283386230469, -0.0093994140625, -0.0029296875, 0.0302734375, 0...
[ 2174, 144570, 142, 37076, 70731, 13, 484, 109109, 1238, 3949, 3742, 85590, 70, 25632, 18151, 32354, 1884, 27169, 67, 115, 182867, 54, 8912, 282, 64113, 7623, 184, 132, 5351, 15044, 90, 30646, 16750, 18499, 26008, 9969, 34759, 73243, 125195,...
[ 0.1942138671875, 0.2041015625, 0.081787109375, 0.215087890625, 0.197509765625, 0.08612060546875, 0.046875, 0.0694580078125, 0.046051025390625, 0.045745849609375, 0.1260986328125, 0.0206298828125, 0.007049560546875, 0.0183563232421875, 0.07415771484375, 0.1348876953125, 0.013122558593...
embed
46183435_c0
46183435
fsharp
0
Title: ASP.NET MVC Modelbinder with optional values in F# Problem title: ASP.NET MVC Modelbinder with optional values in F# Tags: f%23, asp.net-mvc, asp.net-core-mvc Problem: ASP.NET MVC Modelbinder with optional values in F# I am using ASP.NET Core MVC with F#. I want to post a form with optional values: [<Post>] memb...
ASP.NET MVC Modelbinder with optional values in F# ASP.NET MVC Modelbinder with optional values in F# f%23 asp.net-mvc asp.net-core-mvc ASP.NET MVC Modelbinder Post this.Post MyForm CLIMutable SomeValue Option asp.net-mvc asp.net-core-mvc ASP.NET MVC Modelbinder with optional values in F# I am using ASP.NET Core MVC wi...
[ -0.009033203125, 0.014404296875, -0.00909423828125, -0.0228271484375, -0.006988525390625, -0.0115966796875, 0.02490234375, -0.0115966796875, 0.00188446044921875, -0.0011138916015625, 0.0111083984375, -0.007049560546875, -0.00098419189453125, 0.0123291015625, 0.0162353515625, 0.01879882...
[ 147153, 17777, 276, 56349, 13293, 186653, 678, 35829, 289, 142424, 23, 563, 4904, 1238, 3949, 3742, 254, 1179, 66357, 30854, 39, 102973, 83318, 34, 22819, 31384, 856, 50770, 86769, 17368, 31365, 3444, 1305, 3173, 3293, 22027, 18, 4488, 1550...
[ 0.146484375, 0.1302490234375, 0.052093505859375, 0.2357177734375, 0.19091796875, 0.26416015625, 0.049285888671875, 0.221923828125, 0.1368408203125, 0.199462890625, 0.041534423828125, 0.10003662109375, 0.187744140625, 0.042449951171875, 0.00830078125, 0.1060791015625, 0.0875244140625,...
embed
52411478_c0
52411478
fsharp
0
Title: How to parse seq of words separated by double spaces using fparsec? Problem title: How to parse seq of words separated by double spaces using fparsec? Tags: f%23, parsing, fparsec Problem: How to parse seq of words separated by double spaces using fparsec? Given the input: alpha beta gamma one two three How coul...
How to parse seq of words separated by double spaces using fparsec? How to parse seq of words separated by double spaces using fparsec? f%23 parsing fparsec fparsec How How to parse seq of words separated by double spaces using fparsec? Given the input: How could I parse this into the below? I can write this when there...
[ -0.00933837890625, 0.007110595703125, -0.0218505859375, 0.03564453125, -0.007598876953125, 0.037353515625, 0.0076904296875, -0.004913330078125, -0.004547119140625, -0.0296630859375, 0.00653076171875, 0.03271484375, -0.001861572265625, -0.004974365234375, -0.01300048828125, 0.0150756835...
[ 11249, 47, 366, 184, 40, 864, 111, 34153, 84797, 71, 390, 41929, 32628, 7, 17368, 1238, 2500, 39797, 32, 3949, 3742, 6953, 77878, 107730, 903, 3934, 35064, 831, 33022, 11522, 38310, 748, 14005, 43240, 9254, 5117, 25040, 75358, 18588, 2189...
[ 0.0599365234375, 0.06170654296875, 0.159912109375, 0.144775390625, 0.1129150390625, 0.21826171875, 0.057159423828125, 0.176025390625, 0.1719970703125, 0.06524658203125, 0.0606689453125, 0.1614990234375, 0.204345703125, 0.0120849609375, 0.042755126953125, 0.114990234375, 0.14868164062...
embed
3267590_c0
3267590
fsharp
0
Title: F# iteration over a Dictionary Problem title: F# iteration over a Dictionary Tags: f%23 Problem: F# iteration over a Dictionary I'm just starting with F# and I want to iterate over a dictionary, getting the keys and values. So in C#, I'd put: IDictionary resultSet = test.GetResults; foreach (DictionaryEntry de i...
F# iteration over a Dictionary F# iteration over a Dictionary f%23 Dictionary IDictionary test.GetResults DictionaryEntry Console.WriteLine Key Value de.Key de.Value F# iteration over a Dictionary I'm just starting with F# and I want to iterate over a dictionary, getting the keys and values. So in C#, I'd put: I can't ...
[ 0.00396728515625, -0.0245361328125, 0.005706787109375, -0.0194091796875, 0.004180908203125, -0.01708984375, -0.0078125, -0.011962890625, 0.0020294189453125, -0.00897216796875, 0.0196533203125, 0.004119873046875, -0.0230712890625, 0.0037078857421875, 0.0201416015625, 0.0213623046875, ...
[ 563, 4904, 17, 720, 2320, 645, 147638, 10, 1238, 3949, 3742, 14, 10763, 3034, 126, 4332, 10178, 7768, 15123, 40777, 93232, 26824, 190060, 8, 162429, 856, 50770, 72134, 678, 3444, 47, 8560, 45, 6635, 20949, 22799, 136, 142424, 23, 313, 3...
[ 0.1627197265625, 0.2005615234375, 0.103759765625, 0.248046875, 0.0860595703125, 0.173828125, 0.2366943359375, 0.003448486328125, 0.076171875, 0.0234222412109375, 0.10693359375, 0.0360107421875, 0.197265625, 0.1258544921875, 0.00286865234375, 0.0048828125, 0.09759521484375, 0.008514...
embed
49350098_c0
49350098
fsharp
0
Title: how to access exception.Response.StatusCode variable in the try with block Problem title: how to access exception.Response.StatusCode variable in the try with block Tags: exception, visual-studio, debugging, c%23, f%23 Problem: how to access exception.Response.StatusCode variable in the try with block As I'm deb...
how to access exception.Response.StatusCode variable in the try with block how to access exception.Response.StatusCode variable in the try with block exception visual-studio debugging c%23 f%23 exception.Response.StatusCode Debug.WriteLine how to access exception.Response.StatusCode variable in the try with block As I'...
[ -0.0027618408203125, 0.035888671875, 0.012451171875, 0.0032196044921875, 0.033203125, -0.00421142578125, 0.003631591796875, 0.021728515625, -0.01080322265625, 0.0064697265625, 0.0025787353515625, 0.01409912109375, 0.025390625, -0.0179443359375, 0.040771484375, 0.002838134765625, -0.0...
[ 3642, 47, 17203, 131527, 94399, 13, 135206, 223, 114211, 77336, 9790, 678, 46389, 23, 21176, 52629, 8, 978, 3742, 262, 85779, 93232, 5, 156672, 3650, 3355, 63928, 28032, 4000, 76896, 104250, 21980, 19882, 70820, 831, 903, 11249, 13315, 1511...
[ 0.058349609375, 0.0074462890625, 0.173583984375, 0.2103271484375, 0.179931640625, 0.03125, 0.1119384765625, 0.0947265625, 0.246826171875, 0.234130859375, 0.195556640625, 0.18505859375, 0.173095703125, 0.036834716796875, 0.1240234375, 0.1177978515625, 0.06500244140625, 0.08343505859...
embed
33202641_c0
33202641
fsharp
0
Title: How to send this PUT-request to prestashop? Problem title: How to send this PUT-request to prestashop? Tags: php, xml, rest, prestashop, f%23 Problem: How to send this PUT-request to prestashop? Code signals: How, PUT-request, PUT, input_xml, XML, POST, _SERVER, REQUEST_METHOD, Content-Type, orderId:int64, state...
How to send this PUT-request to prestashop? How to send this PUT-request to prestashop? php xml rest prestashop f%23 How PUT-request PUT input_xml XML POST _SERVER REQUEST_METHOD Content-Type orderId:int64 stateId:int64 credentials:AuthInfo www.webstoreexample.com BasicAuth credentials.Key credentials.Api orderId.ToStr...
[ 0.00701904296875, 0.030029296875, -0.0027008056640625, -0.00848388671875, 0.01123046875, 0.032470703125, -0.0242919921875, 0.0003910064697265625, -0.004974365234375, -0.01470947265625, 0.0225830078125, 0.004058837890625, -0.0272216796875, 0.00421142578125, 0.009033203125, -0.0057678222...
[ 11249, 47, 25379, 903, 124599, 9, 107, 75616, 11209, 10534, 3958, 131492, 10588, 1238, 3949, 3742, 107730, 92537, 81903, 116808, 9069, 53966, 33677, 70870, 196707, 12989, 71, 4288, 13307, 11341, 10291, 67362, 93147, 45804, 91692, 80973, 162429,...
[ 0.1107177734375, 0.123779296875, 0.1507568359375, 0.1072998046875, 0.30029296875, 0.044464111328125, 0.111328125, 0.195068359375, 0.2235107421875, 0.2371826171875, 0.142578125, 0.225341796875, 0.1307373046875, 0.004302978515625, 0.0244140625, 0.08941650390625, 0.1014404296875, 0.20...
embed
41065300_c1
41065300
fsharp
1
sequence, preferably, but not necessarily, in order. I know I can do this with NUnit (or any unit testing system) using a testdata provider, but I wonder whether I can do it with FsCheck (or whether I should, perhaps this is a bad idea). I think using FsCheck is useful, as for the situation where there's more than one...
sequence, preferably, but not necessarily, in order. I know I can do this with NUnit (or any unit testing system) using a testdata provider, but I wonder whether I can do it with FsCheck (or whether I should, perhaps this is a bad idea). I think using FsCheck is useful, as for the situation where there's more than one...
[ 0.0004215240478515625, 0.0093994140625, -0.01373291015625, 0.0172119140625, 0.00238037109375, -0.01055908203125, 0.015380859375, -0.0142822265625, 0.0166015625, -0.0030517578125, 0.003265380859375, 0.046142578125, 0.003265380859375, 0.0240478515625, -0.01239013671875, 0.01202392578125,...
[ 40, 944, 3956, 12601, 78458, 1284, 959, 204988, 23, 12989, 3714, 831, 54, 903, 678, 18057, 6773, 25072, 134234, 5426, 3034, 10135, 81450, 32195, 442, 563, 7, 202567, 5608, 6494, 6528, 17368, 80234, 16648, 1286, 3501, 1632, 32354, 10750, 3...
[ 0.1156005859375, 0.1568603515625, 0.12255859375, 0.112548828125, 0.07684326171875, 0.023284912109375, 0.05352783203125, 0.0469970703125, 0.0167999267578125, 0.1103515625, 0.001922607421875, 0.06231689453125, 0.058685302734375, 0.038330078125, 0.0869140625, 0.0943603515625, 0.14562988...
embed
66659985_c0
66659985
fsharp
0
Title: F# how to specify when creating union case value what value to set to which field? Problem title: F# how to specify when creating union case value what value to set to which field? Tags: f%23, reflection Problem: F# how to specify when creating union case value what value to set to which field? I have a dictiona...
F# how to specify when creating union case value what value to set to which field? F# how to specify when creating union case value what value to set to which field? f%23 reflection FSharpValue.MakeUnion F# how to specify when creating union case value what value to set to which field? I have a dictionary where the key...
[ 0.0011138916015625, 0.000396728515625, -0.0038299560546875, -0.00179290771484375, -0.0135498046875, -0.0235595703125, -0.0029144287109375, 0.0162353515625, 0.023193359375, 0.0177001953125, 0.01190185546875, 0.016845703125, 0.0272216796875, 0.00091552734375, 0.00579833984375, -0.0112304...
[ 563, 4904, 3642, 40140, 18929, 105233, 69941, 7225, 34292, 5423, 47, 44457, 2367, 3129, 1238, 3742, 44961, 3467, 254, 856, 50770, 76978, 147547, 45, 10763, 22799, 9351, 83, 903, 7722, 143726, 117414, 95486, 47593, 21635, 17932, 10750, 93774 ]
[ 0.1119384765625, 0.190673828125, 0.0307769775390625, 0.1922607421875, 0.12255859375, 0.1407470703125, 0.20849609375, 0.16064453125, 0.177001953125, 0.108642578125, 0.0953369140625, 0.1983642578125, 0.03436279296875, 0.057769775390625, 0.05029296875, 0.1019287109375, 0.146484375, 0....
embed
38614685_c0
38614685
fsharp
0
Title: Seq.cast tuple values from obj to string Problem title: Seq.cast tuple values from obj to string Tags: boxing, casting, f%23, seq, tuples Problem: Seq.cast tuple values from obj to string What is the nice and working way of doing a cast like this? seq { yield (box "key", box "val") } |> Seq.cast<string*string> S...
Seq.cast tuple values from obj to string Seq.cast tuple values from obj to string boxing casting f%23 seq tuples obj Seq.cast Seq.map k.ToString v.ToString Seq.cast tuple values from obj to string What is the nice and working way of doing a cast like this? Since this looks extremely ugly: As well as this: Is there a wa...
[ 0.032958984375, 0.00592041015625, 0.0027008056640625, 0.019287109375, 0.0084228515625, -0.037353515625, -0.005950927734375, 0.004241943359375, 0.004150390625, 0.01104736328125, -0.01287841796875, 0.0084228515625, -0.005401611328125, 0.02978515625, -0.0101318359375, -0.01409912109375, ...
[ 503, 864, 55741, 370, 8705, 142424, 1295, 995, 170, 47, 79315, 16530, 214, 176050, 1238, 3949, 3742, 40, 99726, 62346, 472, 7763, 71713, 81, 26267, 20697, 3917, 20594, 10, 37702, 1884, 903, 33342, 111531, 110608, 309, 11728, 3934, 15700 ]
[ 0.06427001953125, 0.18505859375, 0.2205810546875, 0.1302490234375, 0.23291015625, 0.1895751953125, 0.0948486328125, 0.1490478515625, 0.2083740234375, 0.125732421875, 0.2430419921875, 0.1949462890625, 0.06787109375, 0.202392578125, 0.046356201171875, 0.036651611328125, 0.124267578125,...
embed
33276455_c0
33276455
fsharp
0
Title: Type.GetType() not working for F# type in C# code Problem title: Type.GetType() not working for F# type in C# code Tags: f%23, c%23-to-f%23, reflection Problem: Type.GetType() not working for F# type in C# code I have an F# assembly called Assembly1 I have the following module: namespace Assembly1 module MyModul...
Type.GetType() not working for F# type in C# code Type.GetType() not working for F# type in C# code f%23 c%23-to-f%23 reflection Type.GetType Assembly1 MyModule MyClass Assembly1.MyModule.MyClass Type.GetType() not working for F# type in C# code I have an F# assembly called Assembly1 I have the following module: In a C...
[ -0.01251220703125, 0.0108642578125, 0.006805419921875, 0.0137939453125, 0.00077056884765625, -0.0067138671875, 0.00909423828125, -0.0118408203125, -0.0228271484375, -0.006866455078125, 0.0023956298828125, 0.0019989013671875, -0.01092529296875, -0.0029144287109375, 0.0022125244140625, -...
[ 60457, 724, 126, 196707, 132, 959, 20697, 100, 563, 4904, 10644, 313, 18151, 1238, 3742, 27495, 188, 420, 44961, 1830, 151169, 53, 418, 2646, 91616, 8782, 140803, 31852, 23, 89845, 38526, 88996, 91067, 25632, 34292, 139550, 4420, 31577, 772...
[ 0.2369384765625, 0.115966796875, 0.1817626953125, 0.30908203125, 0.044708251953125, 0.0712890625, 0.1226806640625, 0.0623779296875, 0.1270751953125, 0.1907958984375, 0.15966796875, 0.03155517578125, 0.12890625, 0.0546875, 0.06072998046875, 0.080078125, 0.0987548828125, 0.0376892089...
embed
67863697_c1
67863697
fsharp
1
. Then I found Expr.Coerce(source, target) function, which looks like solving my problem. I have changed the code of serializeArgExpr to something like that: let serializeArgExpr (arg: Expr) = let value' = Expr.Coerce(value, typeof<obj>) <@ serialize %%value' } @> Then faced a new strange exception: The design-time typ...
. Then I found Expr.Coerce(source, target) function, which looks like solving my problem. I have changed the code of serializeArgExpr to something like that: let serializeArgExpr (arg: Expr) = let value' = Expr.Coerce(value, typeof<obj>) <@ serialize %%value' } @> Then faced a new strange exception: The design-time typ...
[ 0.0096435546875, 0.01129150390625, 0.0024871826171875, -0.0032806396484375, -0.00151824951171875, -0.0030975341796875, -0.022216796875, 0.01953125, -0.00897216796875, -0.0283203125, 0.011474609375, -0.00244140625, 0.0218505859375, 0.0017547607421875, 0.0108642578125, -0.006103515625, ...
[ 14037, 60075, 42, 10625, 56, 329, 60427, 30388, 32354, 33342, 3115, 6496, 2967, 98816, 70, 18151, 35686, 20650, 7614, 177, 19279, 10287, 2633, 61477, 34292, 27494, 10644, 4390, 3522, 170, 2577, 114453, 131527, 4331, 6032, 38496, 13315, 759, ...
[ 0.1290283203125, 0.166015625, 0.22314453125, 0.055206298828125, 0.173095703125, 0.156005859375, 0.1842041015625, 0.257568359375, 0.1259765625, 0.0689697265625, 0.0784912109375, 0.008697509765625, 0.120361328125, 0.11767578125, 0.000885009765625, 0.130126953125, 0.17578125, 0.083679...
embed
77341323_c1
77341323
fsharp
1
when ^TaskLike: (member GetAwaiter: unit -> ^Awaiter) and ^Awaiter :> Runtime.CompilerServices.ICriticalNotifyCompletion and ^Awaiter: (member get_IsCompleted: unit -> bool) and ^Awaiter: (member GetResult: unit -> 'TResult1) // Argument 'task' doesn't match I can't make sense of that error message, and I'm lost in th...
when ^TaskLike: (member GetAwaiter: unit -> ^Awaiter) and ^Awaiter :> Runtime.CompilerServices.ICriticalNotifyCompletion and ^Awaiter: (member get_IsCompleted: unit -> bool) and ^Awaiter: (member GetResult: unit -> 'TResult1) // Argument 'task' doesn't match I can't make sense of that error message, and I'm lost in th...
[ -0.018798828125, 0.018310546875, -0.00616455078125, -0.0155029296875, -0.0003337860107421875, -0.00482177734375, -0.007537841796875, -0.0032196044921875, -0.01031494140625, -0.00012302398681640625, -0.00830078125, 0.024658203125, -0.004119873046875, -0.004730224609375, 0.0048828125, 0....
[ 3229, 13331, 9874, 1042, 156607, 27417, 20779, 284, 634, 16840, 25072, 136, 28398, 6032, 108161, 34759, 121979, 416, 70760, 122116, 40383, 133, 2046, 29598, 3674, 142484, 4332, 7, 7136, 28981, 90, 17727, 112140, 1073, 92, 22027, 18, 14858, ...
[ 0.0301361083984375, 0.02911376953125, 0.178466796875, 0.150390625, 0.298095703125, 0.1513671875, 0.0855712890625, 0.019989013671875, 0.1597900390625, 0.250244140625, 0.1544189453125, 0.012786865234375, 0.00250244140625, 0.06768798828125, 0.1123046875, 0.06890869140625, 0.119384765625...
embed
10268207_c0
10268207
fsharp
0
Title: f# fibbonaci efficient algorithm Problem title: f# fibbonaci efficient algorithm Tags: fibonacci, f%23 Problem: f# fibbonaci efficient algorithm here is 2 functions that calculate the fibbonaci number, they both work correctly, but are written in a different way. which one would you consider better, more efficie...
f# fibbonaci efficient algorithm f# fibbonaci efficient algorithm fibonacci f%23 acc1 acc2 f# fibbonaci efficient algorithm here is 2 functions that calculate the fibbonaci number, they both work correctly, but are written in a different way. which one would you consider better, more efficient, code more understandable...
[ 0.0079345703125, -0.00640869140625, -0.00665283203125, 0.016357421875, -0.002532958984375, 0.01708984375, 0.0067138671875, 0.0137939453125, 0.0186767578125, -0.0255126953125, 0.0303955078125, 0.009033203125, 0.00099945068359375, 0.0159912109375, 0.003936767578125, 0.00897216796875, -...
[ 1238, 4904, 809, 275, 20990, 318, 93766, 234873, 52544, 3949, 3742, 50015, 418, 304, 3688, 83, 116, 32354, 7, 450, 74481, 67, 14012, 1836, 15044, 4488, 26785, 538, 1284, 621, 59121, 23, 12921, 3917, 3129, 1632, 2806, 398, 16916, 11522, ...
[ 0.1307373046875, 0.1822509765625, 0.1680908203125, 0.115234375, 0.171142578125, 0.21142578125, 0.21923828125, 0.223388671875, 0.153564453125, 0.057373046875, 0.17578125, 0.0811767578125, 0.0655517578125, 0.0975341796875, 0.061187744140625, 0.0251617431640625, 0.1077880859375, 0.190...
embed
63481258_c0
63481258
fsharp
0
Title: F#: How to test internal modules from another project? Problem title: F#: How to test internal modules from another project? Tags: f%23, .net-core Problem: F#: How to test internal modules from another project? I follow the best F# practices from .Net documentation : I create a project for the Application (conso...
F#: How to test internal modules from another project? F#: How to test internal modules from another project? f%23 .net-core another How F#: How to test internal modules from another project? I follow the best F# practices from .Net documentation : I create a project for the Application (console, not library) I create ...
[ -0.0174560546875, 0.0164794921875, 0.00213623046875, 0.01275634765625, -0.01043701171875, -0.0072021484375, 0.007476806640625, -0.0126953125, -0.004852294921875, -0.00909423828125, 0.01239013671875, 0.0123291015625, -0.00982666015625, 0.039794921875, 0.01068115234375, -0.0091552734375,...
[ 563, 4904, 11249, 47, 3034, 70796, 88996, 7, 1295, 15700, 13452, 1238, 3742, 1179, 30854, 28960, 2965, 41361, 24447, 209806, 28282, 104921, 40777, 35773, 8647, 60075, 60751, 15649, 959, 172554, 166117, 53418, 24927, 51339, 25072, 134234, 87388,...
[ 0.1192626953125, 0.192626953125, 0.071533203125, 0.0301513671875, 0.2412109375, 0.2237548828125, 0.17626953125, 0.04693603515625, 0.1265869140625, 0.1177978515625, 0.124267578125, 0.0259857177734375, 0.0284423828125, 0.0960693359375, 0.096923828125, 0.011199951171875, 0.0108642578125...
embed
70706781_c0
70706781
fsharp
0
Title: Marking F# method with `async` modifier Problem title: Marking F# method with `async` modifier Tags: f%23 Problem: Marking F# method with `async` modifier I am trying to implement a method in F# that would be used from C# in async .. await manner. Here is the stub: [<Extension>] static member DoWorkAsync(value :...
Marking F# method with `async` modifier Marking F# method with `async` modifier f%23 Marking Extension DoWorkAsync MyValueType Task MyOtherType Marking F# method with `async` modifier I am trying to implement a method in F# that would be used from C# in async .. await manner. Here is the stub: However, when I consume t...
[ -0.008056640625, 0.0228271484375, 0.0201416015625, -0.017822265625, -0.019287109375, 0.00701904296875, -0.0186767578125, 0.00634765625, 0.000484466552734375, -0.0223388671875, -0.0033721923828125, -0.003875732421875, -0.00421142578125, 0.01373291015625, 0.01470947265625, 0.001007080078...
[ 7880, 214, 563, 4904, 55300, 678, 11, 12654, 238, 158254, 1238, 3949, 3742, 224545, 984, 108259, 2646, 856, 50770, 196707, 9598, 92, 9319, 31577, 29479, 11814, 1295, 10, 634, 217, 144996, 136057, 18588, 2806, 3917, 16188 ]
[ 0.166748046875, 0.029388427734375, 0.120361328125, 0.2044677734375, 0.164306640625, 0.044158935546875, 0.057891845703125, 0.201416015625, 0.1314697265625, 0.2452392578125, 0.05859375, 0.0040283203125, 0.1416015625, 0.165771484375, 0.06329345703125, 0.1217041015625, 0.084228515625, ...
embed
74430948_c0
74430948
fsharp
0
Title: Subtracting dates with Deedle Problem title: Subtracting dates with Deedle Tags: deedle, f%23 Problem: Subtracting dates with Deedle I want to get the difference between two dates. Ideally to add this back into the frame as a new column. Have tried the code below but get "Overloaded subtraction operator" let df ...
Subtracting dates with Deedle Subtracting dates with Deedle deedle f%23 Subtracting Deedle Frame.ReadCsv someDateColumns.csv s1:Series DateTime df.GetColumn StartDate s2:Series EndDate Subtracting dates with Deedle I want to get the difference between two dates. Ideally to add this back into the frame as a new column. ...
[ 0.0108642578125, 0.016357421875, -0.0027008056640625, 0.031005859375, -0.0341796875, -0.0162353515625, -0.00927734375, 0.027099609375, 0.005828857421875, 0.000820159912109375, -0.031494140625, 0.0108642578125, -0.015869140625, 0.00677490234375, -0.015625, -0.00909423828125, 0.0098266...
[ 8273, 39989, 112474, 678, 262, 297, 133, 1916, 8, 1238, 3949, 3742, 42557, 13, 31345, 67756, 3060, 86291, 78457, 316, 334, 138724, 25512, 70059, 420, 13794, 304, 18878, 3444, 2046, 60212, 17721, 6626, 41143, 15190, 4420, 123789, 3365, 37842...
[ 0.116943359375, 0.14013671875, 0.173095703125, 0.0596923828125, 0.1239013671875, 0.16845703125, 0.1888427734375, 0.03839111328125, 0.0869140625, 0.032501220703125, 0.031402587890625, 0.1156005859375, 0.1070556640625, 0.00286865234375, 0.09228515625, 0.11376953125, 0.000152587890625, ...
embed
1751607_c0
1751607
fsharp
0
Title: Unload/unreference a referenced assembly from F# interactive Problem title: Unload/unreference a referenced assembly from F# interactive Tags: f%23-interactive, f%23, assemblies Problem: Unload/unreference a referenced assembly from F# interactive The F# Interactive (fsi.exe) has a directive to reference a given...
Unload/unreference a referenced assembly from F# interactive Unload/unreference a referenced assembly from F# interactive f%23-interactive f%23 assemblies F# Unload file.dll Reference DLL Unload/unreference a referenced assembly from F# interactive The F# Interactive (fsi.exe) has a directive to reference a given assem...
[ -0.0068359375, 0.0233154296875, 0.0164794921875, 0.033447265625, -0.0128173828125, -0.01806640625, -0.013916015625, 0.011474609375, -0.0126953125, -0.0031280517578125, -0.0252685546875, 0.005950927734375, -0.0028839111328125, 0.0150146484375, 0.005462646484375, 0.0029449462890625, 0....
[ 992, 63033, 309, 239879, 91067, 71, 10, 89845, 38526, 1295, 563, 4904, 212398, 1238, 27495, 10433, 3742, 7121, 11435, 1181, 215996, 391, 23708, 5337, 71232, 420, 172, 46480, 1556, 8951, 5844, 47, 34475, 27983, 1884, 51, 64, 198395, 12989, ...
[ 0.150146484375, 0.2279052734375, 0.14404296875, 0.2841796875, 0.2509765625, 0.04730224609375, 0.0285491943359375, 0.1937255859375, 0.099609375, 0.041656494140625, 0.14404296875, 0.2083740234375, 0.1759033203125, 0.1572265625, 0.06317138671875, 0.0849609375, 0.0216522216796875, 0.11...
embed
33235685_c0
33235685
fsharp
0
Title: Time complexity O() of two two part functions Problem title: Time complexity O() of two two part functions Tags: f%23 Problem: Time complexity O() of two two part functions What would the time complexity be of these two algorithms? let rec fol f a = function | [] -> a | x::xs -> fol f (f a x) xs;; let mergelist ...
Time complexity O() of two two part functions Time complexity O() of two two part functions f%23 Time x::xs List.fol y::ys mergelist2 List.folB Time complexity O() of two two part functions What would the time complexity be of these two algorithms? and and how would i be able to test it my self? Should return something...
[ 0.00726318359375, 0.00384521484375, 0.0027008056640625, 0.0201416015625, -0.004302978515625, 0.0096435546875, -0.009765625, 0.001861572265625, 0.004150390625, 0.001220703125, -0.00002562999725341797, 0.0203857421875, 0.00131988525390625, 0.01361083984375, -0.0062255859375, -0.009033203...
[ 19055, 27140, 2481, 180, 132, 111, 6626, 2831, 32354, 16, 1238, 3949, 3742, 1022, 425, 7, 32036, 23789, 113, 4778, 42564, 6562, 304, 571, 4865, 2806, 70, 1733, 186, 6097, 234873, 3642, 17, 19048, 47, 3034, 442, 759, 15970, 151117, 30646...
[ 0.194580078125, 0.24609375, 0.1351318359375, 0.228759765625, 0.0516357421875, 0.055908203125, 0.1572265625, 0.13671875, 0.1593017578125, 0.02508544921875, 0.1123046875, 0.0587158203125, 0.1700439453125, 0.057586669921875, 0.09228515625, 0.032012939453125, 0.14208984375, 0.136840820...
embed
34113073_c1
34113073
fsharp
1
[||] member this.Rank = 0 member this.addEvidence dataX dataY = "expletive" member this.query (points:int[]) = points |> Array.iteri(fun i x -> x * this.ModelCoefficients.[i]) I get an error here: points |> Array.iteri(fun i x -> x * this.ModelCoefficients.[i]) ...I guess this.ModelCoefficients.[i] is a unit and doesn...
[||] member this.Rank = 0 member this.addEvidence dataX dataY = "expletive" member this.query (points:int[]) = points |> Array.iteri(fun i x -> x * this.ModelCoefficients.[i]) I get an error here: points |> Array.iteri(fun i x -> x * this.ModelCoefficients.[i]) ...I guess this.ModelCoefficients.[i] is a unit and doesn...
[ -0.0152587890625, 0.0201416015625, -0.01043701171875, 0.01165771484375, -0.0101318359375, -0.01275634765625, -0.006927490234375, -0.000885009765625, 0.0206298828125, -0.038330078125, 0.01708984375, -0.021484375, 0.0007781982421875, -0.01043701171875, -0.003997802734375, -0.004608154296...
[ 32786, 903, 126525, 92, 2203, 757, 4028, 647, 58557, 2053, 1542, 1723, 83613, 133, 4935, 944, 1294, 38496, 4288, 26847, 69253, 53, 14, 14465, 16498, 17, 1022, 33079, 661, 140290, 10625, 4240, 11044, 35066, 18499, 3688, 2740, 57767, 25072, ...
[ 0.2166748046875, 0.169189453125, 0.1866455078125, 0.10076904296875, 0.00396728515625, 0.084716796875, 0.085693359375, 0.018524169921875, 0.1829833984375, 0.1251220703125, 0.168701171875, 0.1754150390625, 0.0626220703125, 0.083251953125, 0.1463623046875, 0.0648193359375, 0.08776855468...
embed
1693271_c1
1693271
fsharp
1
let crhs = Expression.Constant(rhs) Expression.Add(clhs, crhs) (* no problems with this one *) printf "Testing operator overloading: %A" (DataType.ScalarCarrier(1.0) + DataType.ScalarCarrier(2.0)) (* this throws an exception *) printf "Testing expr construction %A" (Main.createAddOp (DataType.ScalarCarrier(1.0)) (Data...
let crhs = Expression.Constant(rhs) Expression.Add(clhs, crhs) (* no problems with this one *) printf "Testing operator overloading: %A" (DataType.ScalarCarrier(1.0) + DataType.ScalarCarrier(2.0)) (* this throws an exception *) printf "Testing expr construction %A" (Main.createAddOp (DataType.ScalarCarrier(1.0)) (Data...
[ 0.0250244140625, 0.03076171875, 0.0089111328125, 0.00946044921875, 0.0179443359375, -0.00836181640625, 0.0150146484375, -0.0079345703125, -0.0034332275390625, -0.03564453125, -0.01165771484375, -0.0203857421875, 0.006439208984375, 0.00225830078125, 0.00286865234375, -0.006591796875, ...
[ 2633, 8374, 127, 7, 2203, 25129, 1830, 11935, 42539, 284, 4028, 34937, 28412, 420, 111337, 214, 39933, 645, 63033, 1745, 137989, 196707, 408, 320, 21851, 25388, 102107, 997, 11809, 73011, 104250, 131527, 14700, 42, 50961, 168793, 7612, 39029,...
[ 0.087890625, 0.1031494140625, 0.1495361328125, 0.0904541015625, 0.00054931640625, 0.1898193359375, 0.12255859375, 0.012786865234375, 0.14599609375, 0.05499267578125, 0.140380859375, 0.02392578125, 0.16552734375, 0.01361083984375, 0.21337890625, 0.111572265625, 0.2337646484375, 0.13...
embed
296842_c0
296842
fsharp
0
Title: Converting Days into Human Readable Duration Text Problem title: Converting Days into Human Readable Duration Text Tags: f%23, c%23 Problem: Converting Days into Human Readable Duration Text Given an amount of days, say 25, convert it into a duration text such as "3 Weeks, 4 Days" C# and F# solutions would both ...
Converting Days into Human Readable Duration Text Converting Days into Human Readable Duration Text f%23 c%23 Converting Days Human Readable Duration Text Converting Days into Human Readable Duration Text Given an amount of days, say 25, convert it into a duration text such as "3 Weeks, 4 Days" C# and F# solutions woul...
[ 0.004425048828125, -0.005889892578125, 0.006378173828125, 0.021728515625, -0.015625, 0.00604248046875, -0.01214599609375, 0.00665283203125, -0.0208740234375, 0, -0.0361328125, 0.004150390625, -0.0213623046875, 0.00958251953125, 0.0036163330078125, 0.020263671875, 0.0057373046875, 0...
[ 1657, 814, 1916, 97292, 3934, 28076, 4764, 2886, 79843, 24129, 1238, 3949, 3742, 41170, 13312, 5154, 714, 96760, 115, 30494, 7986, 6044, 363, 58417, 4, 201, 313, 4904, 136, 563, 51347, 2806, 15044, 6782, 2174, 143834, 64600, 136912, 645, ...
[ 0.0811767578125, 0.17333984375, 0.05743408203125, 0.257080078125, 0.1346435546875, 0.1446533203125, 0.1480712890625, 0.1478271484375, 0.2061767578125, 0.2127685546875, 0.020477294921875, 0.0069580078125, 0.0859375, 0.107177734375, 0.24951171875, 0.023101806640625, 0.21630859375, 0....
embed