Skip to content

Instantly share code, notes, and snippets.

@johnmyleswhite
Created April 12, 2020 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnmyleswhite/6f06fa59fdba2cb2dc24df4e5b3501f4 to your computer and use it in GitHub Desktop.
Save johnmyleswhite/6f06fa59fdba2cb2dc24df4e5b3501f4 to your computer and use it in GitHub Desktop.
> library("stringr")
> str_sub("ñ", start = -1)
[1] "̃"
> str_sub("ñ", start = -1)
[1] "ñ"
@infrahumano
Copy link

What's the difference between the two? The way you write ñ?

@johnmyleswhite
Copy link
Author

Yes, one was written using a combining character. In a Julia REPL, you can generate the first by writing the following and hitting tab to complete it:

julia> n\tilde

@infrahumano
Copy link

Ugh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment