I have exam monday about it. Could you explain me what happened before minute 5:35 please? when you have append2([], [d,e,f], result = []) go to the base case and it make result equal to d, e,f ?
After the recursion part, the append2([ ], [d,e,f], [d,e,f]), may i know how it works with the case append2([ ], List2, List2). to get that List2 matched with result ?
Amazing video, but I have a question if you have an empty list how could I return strings with at least one same char example: ("bar" "bus" "day") #\d = day Thank you for your attention :D
Just a heads up that I believe singleton variables will cause the new compiler to fail.. for example for the member function we would have: membr2([X|_], X). membr2([_|T], X) :- membr2(T, X).
that may be a bit late, but it may help somone, I think you mistyped your fact, and you meant append(L1,L2, [L1|L2]) . let's suppose that L1 = [1,2,3] and L2=[4,5,6] then the result will be [[1, 2, 3], 4, 5, 6] and that's not what you want, because the syntax [L1|L2] means add the element L1 to the start of the list L2 (doesn't matter what is the type of L1).
I usually don't write comments but I have to say it, thank you so much ! You really helped me a lot!
Great video's, please continue! Would appreciate it if you could increase font size!
I have exam monday about it. Could you explain me what happened before minute 5:35 please? when you have append2([], [d,e,f], result = []) go to the base case and it make result equal to d, e,f ?
Did you pass the exam though
@@TheMigoftima yea we want to know
Great Video!
After the recursion part, the append2([ ], [d,e,f], [d,e,f]), may i know how it works with the case append2([ ], List2, List2). to get that List2 matched with result ?
Amazing video, but I have a question if you have an empty list how could I return strings with at least one same char example: ("bar" "bus" "day") #\d =
day
Thank you for your attention :D
This was such a helpful video, thanks a bunch man!
Great and quick video. Super useful.
Just a heads up that I believe singleton variables will cause the new compiler to fail.. for example for the member function we would have:
membr2([X|_], X).
membr2([_|T], X) :-
membr2(T, X).
te iubesc frate, te pupa sori bombardieru
Please increase font size...I am unable to see clearly
I passed my exams fam thanks
thanks mate.
why didn't we just type it this way
append(L1, L2, L1|L2). ?
that may be a bit late, but it may help somone, I think you mistyped your fact, and you meant append(L1,L2, [L1|L2]) . let's suppose that L1 = [1,2,3] and L2=[4,5,6] then the result will be [[1, 2, 3], 4, 5, 6] and that's not what you want, because the syntax [L1|L2] means add the element L1 to the start of the list L2 (doesn't matter what is the type of L1).
'Perl Source File'
NO IT IS NOT !!! -.-
That's so annoying :/
Haha, yeah. Sick and tired of that.
Totally unreadable on small tablet/phone 8-(