Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_matrices([], [], []).
- add_matrices([], _, false).
- add_matrices(_, [], false).
- add_matrices([Row1|T1], [Row2|T2], [V|L]) :- add_two_rows(Row1, Row2, V),
- add_matrices(T1, T2, L).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement