Skip to main content
luksan's user avatar
luksan's user avatar
luksan's user avatar
luksan
  • Member for 10 years, 9 months
  • Last seen more than 6 years ago
comment
Brainfuck interpreter in F#
I also think the explicit type parameters on Map.empty<int, int> are not needed.
comment
Brainfuck interpreter in F#
You could replace x::xs when x = '[' with '['::xs I believe.
awarded
comment
Better yielding tuple-d union case values in list generation
I realize they're not going to change, but it avoids writing the yield 6 times, like you said.
Loading…
revised
Splitting a sequence into equal segments
deleted 10 characters in body
Loading…
comment
Splitting a sequence into equal segments
I updated my array solution.
revised
Splitting a sequence into equal segments
deleted 77 characters in body
Loading…
revised
Splitting a sequence into equal segments
added 51 characters in body
Loading…
revised
Splitting a sequence into equal segments
added 256 characters in body
Loading…
revised
Splitting a sequence into equal segments
added 895 characters in body
Loading…
revised
Splitting a sequence into equal segments
added 4 characters in body
Loading…
answered
Loading…
comment
First real-world F# application - how "good"/idiomatic is it? (long!)
I don't know about the naming thing. One thing to keep in mind is that a let binding, parameter, etc. will shadow any previous one (at least in the current scope), which might actually be desirable in some cases if you want to avoid accidentally referencing the original.
comment
First real-world F# application - how "good"/idiomatic is it? (long!)
Putting the type extensions in a library might be appropriate if you plan on having many of these these plugins and a common codebase to support them all. Or if not, that is fine as well - type extensions are really nice for this type of ad-hoc, throwaway functionality.
awarded
Loading…
awarded
awarded
Loading…