Advertisement
cristiano002

Untitled

Jun 9th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.23 KB | None | 0 0
  1. let rec listaZCharem (ch:char, n:int, lista:char list)  =
  2.     match n with
  3.     | n when n < 0 -> lista
  4.     | 0 -> lista
  5.     | 1 -> ch::lista
  6.     | _ -> listaZCharem(ch, n-1, ch::lista)
  7.    
  8.    
  9. let wynik = listaZCharem('s', 2, [])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement