Guest User

Untitled

a guest
Apr 15th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Oz 0.44 KB | None | 0 0
  1. fun {LAppend LL1 LL2}
  2.  case LL1 of
  3. lCons(H LT) then lCons(H fun {$} {LAppend {LT} LL2} end)
  4. [] lNil then LL2 end
  5. End
  6.  
  7. declare fun{ Orgazm LL A B}
  8. case LL
  9. of lCons(H LT) then if H%3 == 0then LAppend A lCons(H fun{$} {Orgazm LT A B}) else   LAppend B lCons(H fun{$} {Orgazm LT A B}) end
  10. [] lNil then [A;B]
  11. end
Add Comment
Please, Sign In to add comment