You are viewing a single comment's thread. Return to all comments →
This is my F# solution. But I feel the code is more imperative than functional.
let main argv = let n = Console.ReadLine() |> int for i = 0 to n do let cadena = Console.ReadLine() for j = 1 to (cadena.Length-1) do Console.Write(cadena.[j..(cadena.Length-1)]) Console.Write(cadena.[0..(j-1)] + " ") Console.WriteLine(cadena) 0;;
Rotate String
You are viewing a single comment's thread. Return to all comments →
This is my F# solution. But I feel the code is more imperative than functional.