Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] One more question :)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alexander S. Usov <A.S.Usov@K...>
Subject: [Caml-list] One more question :)
Hi again :)

Is there any way to append a character to string?
The only way I found is to use somthing like

let app c str =
  let str2 = " " ^ str
  in
    str2.[0] <- c; str2 ;;

-- 
Best regards,
  Alexander.

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners