Commit 0c3a7d0a47ae8c85db0a053a2eea607b1cd553ae

Authored by totoro
1 parent ddfcf545

add to_List_String for Int

Showing 1 changed file with 13 additions and 1 deletions   Show diff stats
anubis_dev/library/tools/int.anubis
... ... @@ -71,6 +71,9 @@ public define Bool even (Int x).
71 71 public define Int gcd (Int x, Int y). greatest common divisor
72 72 public define Int lcm (Int x, Int y). least common multiple
73 73  
  74 + *** (8) String tools for Int.
  75 +
  76 +public define List(String) to_List_String(List(Int) l_int). convert a list of Int into List of String
74 77  
75 78 --- That's all for the public part ! -----------------------------------------------
76 79  
... ... @@ -200,5 +203,14 @@ public define Int
200 203 else greatest(t,h)
201 204 }.
202 205  
203   -
  206 + convert a list of Int into List of String
  207 +
  208 +public define List(String)
  209 + to_List_String
  210 + (
  211 + List(Int) l_int
  212 + )=
  213 + map((Int int) |-> abs_to_decimal(int), l_int)
  214 + .
  215 +
204 216  
... ...