How to replace characters in string Erlang?

前端 未结 2 599
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-19 15:57

I have this piece of code that gets sessionid, make it a string, and then create a set with key as e.g. {{1401,873063,143916},<0.16443.0>} in redis. I\'m

2条回答
  •  温柔的废话
    2021-01-19 16:14

    Your solution works, and if you are comfortable with it, you should keep it.

    On my side I prefer list comprehension : [case X of ${ -> $a; _ -> X end || X <- StringForOldSessionID ]. (just because I don't have to check the function documentation :o)

提交回复
热议问题