Skip to content

Commit 2667d93

Browse files
golanorcmcaine
andauthored
improve wording of the bonus part
Co-authored-by: Colin Caine <[email protected]>
1 parent 8335d87 commit 2667d93

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
# Instructions append
22

3-
This is a good exercise to experiment with non-standard string literals.
3+
## Bonus
44

5-
A short introduction to non-standard string literals can be found in this [blog post](https://web.archive.org/web/20170625222109/https://iaindunning.com/blog/julia-unicode.html).
5+
You might like to use this exercise as an excuse to experiment with [non-standard string literals][nssl].
6+
A short introduction to non-standard string literals can be found in this [blog post][nssl-blog].
67

7-
You can extend your solution by adding the functionality described below.
8+
To pass the bonus tests, define a macro `rna_str` as explained in the links above, then your users could write code like this:
89

9-
## Bonus
10-
Implement a string literal that translates RNA strings as:
1110
```julia
1211
rna"AUGUGU" == ["Methionine", "Cysteine"]
12+
13+
rna"""
14+
AUGUUUUCUUAAAUG
15+
""" == ["Methionine", "Phenylalanine", "Serine"]
1316
```
17+
18+
[nssl]: https://docs.julialang.org/en/v1/manual/metaprogramming/#meta-non-standard-string-literals
19+
[nssl-blog]: https://web.archive.org/web/20170625222109/https://iaindunning.com/blog/julia-unicode.html

0 commit comments

Comments
 (0)