Advertisement
Guest User

Ocaml

a guest
Oct 25th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.45 KB | None | 0 0
  1. def zad1 (pointer:(Any,Float,Int)=  (*zad 1.a)
  2.     if (pointer._2>0.0f )
  3.     (List(pointer._1,pointer._1,pointer._1),List(pointer._3+pointer._3))
  4.     else
  5.         (List(pointer._1,pointer._1,pointer._1),List(pointer._3+pointer._3))
  6.        
  7. def zad2 (smallList(List[Float],bigList:List[List[Float]_)= (*zad 1.b)
  8.     smallList.head + (bigList.head).head > 0.0f;;
  9.  
  10. def zad3 (listOne:List[Any], listTwo:List[Any])= (*zad 1.c)
  11.  if(listOne.head==listTwo.head)  1
  12.     else -1;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement