Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let rec magicFunc (elements: int, ch: char) =
- if(elements <> 0) then ((magicFunc(elements-1, ch)) @ [ch]) else []
- printf "%A" (magicFunc(2, 'a'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement