Prolog 3: Recursion Over Lists

Поділитися
Вставка
  • Опубліковано 13 гру 2024

КОМЕНТАРІ • 21

  • @suspensioncheck
    @suspensioncheck 8 років тому +5

    I usually don't write comments but I have to say it, thank you so much ! You really helped me a lot!

  • @RonaldModesitt
    @RonaldModesitt 9 років тому +16

    Great video's, please continue! Would appreciate it if you could increase font size!

  • @LuchoFndz
    @LuchoFndz 6 років тому +1

    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 ?

  • @derkeks814
    @derkeks814 2 роки тому

    Great Video!

  • @thyeaa
    @thyeaa 5 років тому

    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 ?

  • @DanielRodriguez-mf4ey
    @DanielRodriguez-mf4ey 3 роки тому +2

    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

  • @frostbite585
    @frostbite585 7 років тому

    This was such a helpful video, thanks a bunch man!

  • @veloester1096
    @veloester1096 4 роки тому

    Great and quick video. Super useful.

  • @milada5177
    @milada5177 8 років тому +2

    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).

  • @sorin-alexandrumartinescu7566
    @sorin-alexandrumartinescu7566 4 роки тому

    te iubesc frate, te pupa sori bombardieru

  • @sadaffatima2076
    @sadaffatima2076 5 років тому

    Please increase font size...I am unable to see clearly

  • @TheMigoftima
    @TheMigoftima 2 роки тому

    I passed my exams fam thanks

  • @calingabriel8379
    @calingabriel8379 9 років тому

    thanks mate.

  • @yasminemustafa4074
    @yasminemustafa4074 7 років тому

    why didn't we just type it this way
    append(L1, L2, L1|L2). ?

    • @youssefzstuff
      @youssefzstuff 6 років тому +1

      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).

  • @debroy8648
    @debroy8648 7 років тому +4

    'Perl Source File'
    NO IT IS NOT !!! -.-
    That's so annoying :/

    • @taggebagge
      @taggebagge 7 років тому

      Haha, yeah. Sick and tired of that.

  • @dmitryponyatov2158
    @dmitryponyatov2158 5 років тому

    Totally unreadable on small tablet/phone 8-(