tracks/elixir/exercises/forth/example.exs in trackler-2.2.1.109 vs tracks/elixir/exercises/forth/example.exs in trackler-2.2.1.110
- old
+ new
@@ -133,14 +133,14 @@
defp tokenize(s) do
Regex.scan(~r/[\p{L}\p{N}\p{S}\p{P}]+/u, s)
|> Stream.map(&hd/1)
|> Enum.map(fn t ->
- case Integer.parse(t) do
- {i, ""} -> i
- _ -> t
- end
- end)
+ case Integer.parse(t) do
+ {i, ""} -> i
+ _ -> t
+ end
+ end)
end
@doc """
Return the current stack as a string with the element on top of the stack
being the rightmost element in the string.