Skip to content

Commit

Permalink
Add HINTS.md for hello-world/difference-of-squares/rna-transcription …
Browse files Browse the repository at this point in the history
…to address issue #234 (#243)
  • Loading branch information
robkeim authored and ErikSchierboom committed Dec 12, 2016
1 parent 8e2bc9e commit ac97213
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions exercises/difference-of-squares/HINTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Hints
For this exercise the following F# feature comes in handy:
- [Seq.sumBy](https://msdn.microsoft.com/en-us/visualfsharpdocs/conceptual/seq.sumby%5B't,%5Eu%5D-function-%5Bfsharp%5D) is a condensed format to apply a function to a sequence and then sum the results
3 changes: 2 additions & 1 deletion exercises/grains/HINTS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## Hints
For this exercise the following F# feature comes in handy:
- [BigInt](https://msdn.microsoft.com/en-us/visualfsharpdocs/conceptual/numerics.biginteger-structure-%5Bfsharp%5D)
- [BigInt](https://msdn.microsoft.com/en-us/visualfsharpdocs/conceptual/numerics.biginteger-structure-%5Bfsharp%5D)
- [Seq.sumBy](https://msdn.microsoft.com/en-us/visualfsharpdocs/conceptual/seq.sumby%5B't,%5Eu%5D-function-%5Bfsharp%5D) is a condensed format to apply a function to a sequence and then sum the results
5 changes: 5 additions & 0 deletions exercises/hello-world/HINTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Hints
For this exercise the following F# feature comes in handy:
- [Match Expressions](https://fsharpforfunandprofit.com/posts/match-expression/) Also known as pattern matching which is like a switch statement on steriods. It's a very powerful ability in the F# language and will come in handy in many of the exercises. While this example can be trivially solved with an if/else, pattern matching is more idiomatic.
- [sprintf](https://fsharpforfunandprofit.com/posts/printf/) While F# supports string concatenation using sprintf leads to easier to read solutions and is also idiomatic
- [defaultArg](https://msdn.microsoft.com/en-us/visualfsharpdocs/conceptual/operators.defaultarg%5B't%5D-function-%5Bfsharp%5D) Default arg is useful when extracting a value from an option type and providing a value when None is encountered.
3 changes: 3 additions & 0 deletions exercises/rna-transcription/HINTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Hints
For this exercise the following F# feature comes in handy:
- [Match Expressions](https://fsharpforfunandprofit.com/posts/match-expression/) While this can be solved using a dictionary, using a match expression is more idiomatic.

0 comments on commit ac97213

Please sign in to comment.