Permalink
Browse files

README: code formatting;

  • Loading branch information...
1 parent 71c9a46 commit 1c96e8d973d39c34fc34d5e6ddfbfae759c17cbb Tomas Morstein committed Mar 22, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
@@ -2,7 +2,7 @@ Erlang string splitting experiments
===================================
The goal is to find the fastest possible way of
string splitting/tokenization with string delimiter.
-Inspiration comes from ANSI/ISO MUMPS $P[iece] function.
+Inspiration comes from ANSI/ISO MUMPS `$P[iece]` function.
Assumption is that string:split does not exists
and we don't want to implement it as BIF/NIF native
@@ -17,9 +17,9 @@ methods so that it will decide which method to use.
(Input text length, delimiter length, etc.)
An ideal candidate will look like:
-
+```Erlang
epiece ("hello:world::zoo::joe", ":") ->
[{1, "hello"}, {2, "world"}, {3, []}, {4, "zoo"}, {5, []}, {6, "joe"}].
epiece ("hello:world::zoo::joe", ":", [foo, bar, x, x, x, ex]) ->
[{foo, "hello"}, {bar, "world"}, {x, []}, {ex, "joe"}].
-
+```

0 comments on commit 1c96e8d

Please sign in to comment.