Hello. I don't know why it worked on figwheel since map returns a lazy seq
The function you used later is correct, as you want a string.
You can use
(reduce str (map subst_ s))
(apply str (map subt_))
They will work too.
El lunes, 7 de agosto de 2017, 16:39:29 (UTC-5), francis....@gmail.com
> I just posted to github my first clojurescript application:
> It is a very simple application, translating latin characters to arabic /
> farsi characters, using reagent.
> In my first version, the translation was performed as follows:
> (map subst_ s)
> where s is the original string (latin characters) and subst_ substitutes
> farsi characters to latin characters.
> While developing using figwheel, this seemed to work.
> But when I packaged the app for deployment, what I got was no longer an
> arabic/farsi string (where most characters connect to their left with the
> following character), but a sequence of unconnected arabic characters.
> This prompted me to change my code to:
> (reduce str "" (map subst_ s))
> which works fine both in figwheel and in deployment version.
> Why this difference of behavior between figwheel and deployment version in
> the first instance ?
Note that posts from new members are moderated - please be patient with your
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/clojurescript.