Copy a string: Difference between revisions

Content deleted Content added
No edit summary
F#
Line 252: Line 252:
Because Fortran uses fixed length character strings if str1 is shorter than str2 then str2 is padded out with trailing spaces.
Because Fortran uses fixed length character strings if str1 is shorter than str2 then str2 is padded out with trailing spaces.
If str1 is longer than str2 it is truncated to fit.
If str1 is longer than str2 it is truncated to fit.
=={{header|F_Sharp|F#}}
let f =
let mutable s0 = "Hello"
let s1 = s0
s0 <- "Goodbye"
printfn "%s %s" s0 s1
prints ''Goodbye Hello'' when run.


=={{header|Groovy}}==
=={{header|Groovy}}==