Advertisement
zxhouse

Untitled

Jan 6th, 2019
1,279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.29 KB | None | 0 0
  1. let rec szukajArt2 u = function
  2.    | [] -> false
  3.    | (k, (n, c)) :: baza_ogon -> if u = k then true else (szukajArt2 u baza_ogon);
  4.  
  5. let rec duplikaty(lista:rejestr) =
  6.    match lista with;
  7.    | (k, (n, c))::tail -> if (szukajArt2 k tail) then true else duplikaty(tail)
  8.    | [] -> false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement