Hello. I don't know why it worked on figwheel since map returns a lazy seq 
of things.

The function you used later is correct, as you want a string. 

You can use
(reduce str (map subst_ s))
or
(apply str (map subt_))
They will work too.

Saludos!



El lunes, 7 de agosto de 2017, 16:39:29 (UTC-5), francis....@gmail.com 
escribió:
>
> I just posted to github my first clojurescript application:
> https://github.com/francisstephan/farsiscript
> 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 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to