Logic Lambda
Logic Lambda
  • 385
  • 645 619
Writing Pair Procedures in Scheme
Writing Scheme procedures with a pair as a parameter
Link to code: github.com/wadehuber/codeexamples/blob/master/scheme/scheme2/pairprocedures.scm
0:02 - Review of pairs in Scheme
0:13 - Procedures that work with pairs: cons, car, & cdr (and pair?)
0:35 - Creating a pair with "cons"
0:44 - Creating named pairs with define
1:06 - Writing a pair procedure - the "in-order-pair?" predicate
2:25 - Writing a pair procedure - "raise-to-power"
3:00 - Writing a pair procedure where one of the parameters is a list - "multiply-by"
Переглядів: 35

Відео

Introduction to For Loops with Java
Переглядів 61Місяць тому
This video introduces for loops in Java 0:12 - Syntax of a for loop 1:03 - Example for loop 2:30 - Example program without using a loop 3:06 - Rewriting using a for loop 4:25 - Comparison with original version & execution
Checking User Input Using an if Statement in Java
Переглядів 99Місяць тому
0:08 - Initial program 0:28 - Reading an integer from the user 0:53 - Adding an if statement to check that the number is bigger than 10 1:40 - Adding a second condition to the if statement to check that the number is less than 20 2:20 - Adding an "else" condition to print an error message 2:40 - Checking for greater than or equal to / less than or equal to 3:05 - Using constants to hold the bou...
Downloading a Single File from GitHub
Переглядів 1114 місяці тому
You can download an entire GitHub repository with "git clone", but sometimes you just want one file 0:04 - The GitHub repo with the file we want to download 0:11 - Looking at the file we want to download on GitHub 0:25 - Downloading the file 4:46 - Editing & running the file 0:59 - Copying the file to a new folder
Fix for missing file menu in SWI-Prolog (MacOS Sonoma)
Переглядів 1664 місяці тому
0:07 - Example of the missing File / Edit / Settings / Run / Debug /Help 0:22 - Type init_win_menus. at the SWI-Prolog prompt 0:29 - The menus are back
Downloading & Setting Up SWI-Prolog on MacOS Sonoma (July 2024)
Переглядів 6854 місяці тому
This video walks through downloading & installing SWI-Prolog 9.2.5 on MacOS Sonoma 14.5. Hardware is an M3 MacBook Pro. 0:03 - Downloading SWI-Prolog from swi-prolog.org 0:45 - Installing SWI-Prolog on MacOS 0:58 - Launching SWI-Prolog 1:28 - Fix for missing menus (happens with some installs)
Consulting (opening) a .pl file in SWI-Prolog (MacOS Sonoma)
Переглядів 2794 місяці тому
This video walks through consulting a file in SWI-Prolog under MacOS Sonoma. Note that you need to know the full path to the file before you consult it. 0:03 - Opening SWI_Prolog 0:13 - Navigating to the file location, opening with TextEdit 0:32 - Consulting the file: consult('FILEPATH_NAME'). 1:10 - Entering queries
Indentation in Python - Yes, Whitespace Matters!
Переглядів 824 місяці тому
In Python, code blocks are indicated by a common indent level. 0:06 - Code blocks 0:37 - Some guidelines for indenting Python code 1:08 - Code blocks in C are specified by { braces } 1:31 - A Python program with no indentation (no code blocks) 1:52 - Indenting if statements in Python 2:21 - PEP 8 - Style Guide for Python Code 2:51 - Indenting a loop inside an if statement 3:08 - Indenting the b...
Is Scheme's Prefix Notation Really That Weird?
Переглядів 884 місяці тому
0:07 - Example of prefix notation in Scheme 0:49 - Infix notation in C (and other languages with a similar syntax like Java) 1:10 - Functions are the building block of functional languages like Scheme 1:20 - Writing a function in the imperative language C 1:35 - Do we use infix notation to call functions in C? 1:43 - Calling a function in C uses prefix notation - just like Scheme! 2:23 - Compar...
Installing PyCharm 2024.1.3 (Community Edition) on Windows 11
Переглядів 6494 місяці тому
0:04 - Downloading PyCharm from jetbrains.com/pycharm 0:35 - Launching the installer & selecting options 1:33 - Launching PyCharm 1:45 - Creating a Hello, World project
Installing Python 3.12 on Windows 11
Переглядів 1384 місяці тому
0:05 - Check to see if Python is already installed 0:26 - Navigate to python.org & download the installer 0:44 - Running the installer 1:15 - A note about disabling the path length limit 1:31 - Testing the installation with "Hello, world"
Python "Hello, world" Example
Переглядів 1124 місяці тому
0:05 - Create a file with a .py extension 0:10 - Python single line comments 0:18 - The print function 0:24 - Running the python program using WSL Ubuntu 0:38 - Discussion 1:17 - Python extension for Visual Studio Code
Zipping an Eclipse Java Package in macOS Sonoma
Переглядів 1867 місяців тому
Zipping an Eclipse Java Package in macOS Sonoma
Conditional Statements in Scheme - "if" vs "cond"
Переглядів 4177 місяців тому
This video walks through using if & cond and shows how they can be used equivalently 0:06 - The "if' form 0:26 - The "cond" form 1:05 - Which is better - it doesn't matter! 1:15 - An example of using "if" when you have 2 conditions 1:26 - An example of using "cond" when you have 3 conditions 1:46 - Using a "cond" when you only have 2 conditions 2:01 - Using an "if" when you have 3 conditions
Boolean Operators in Scheme - and, or, xor, & not
Переглядів 1677 місяців тому
An overview of some Scheme Boolean operators 0:10 - Using comparison operators in the REPL 0:24 - and 0:54 - or 1:10 - xor (exclusive or) 1:28 - not 1:58 - Using Boolean operators in Scheme forms 2:17 - More than 2 arguments for Boolean operators
Installing DrRacket on macOS Sonoma (March 2024)
Переглядів 3287 місяців тому
Installing DrRacket on macOS Sonoma (March 2024)
Resolving VNC Viewer "An authentication error occurred" connecting to a Mac
Переглядів 1,8 тис.7 місяців тому
Resolving VNC Viewer "An authentication error occurred" connecting to a Mac
Compiling Code at the Command Line - C & Java
Переглядів 1927 місяців тому
Compiling Code at the Command Line - C & Java
Installing Racket 8.12 for Scheme Programming (March 2024)
Переглядів 3377 місяців тому
Installing Racket 8.12 for Scheme Programming (March 2024)
Installing Eclipse on Windows 11 (January 2024)
Переглядів 2 тис.9 місяців тому
Installing Eclipse on Windows 11 (January 2024)
Installing WSL Ubuntu on Windows 11 (January 2024)
Переглядів 26 тис.9 місяців тому
Installing WSL Ubuntu on Windows 11 (January 2024)
CSC110 Project 10 Review - Writing 3 Java Methods
Переглядів 12211 місяців тому
CSC110 Project 10 Review - Writing 3 Java Methods
CSC110 Project 6 Review - A Simple Caesar Cipher in Java
Переглядів 11711 місяців тому
CSC110 Project 6 Review - A Simple Caesar Cipher in Java
Example Binary Tree Traversals - Preorder, Inorder, Postorder, & Level Order
Переглядів 2,9 тис.11 місяців тому
Example Binary Tree Traversals - Preorder, Inorder, Postorder, & Level Order
DrRacket - Setting the Default Language (to Scheme)
Переглядів 487Рік тому
DrRacket - Setting the Default Language (to Scheme)
Conditional Statements - if-else versus switch statements
Переглядів 573Рік тому
Conditional Statements - if-else versus switch statements
The Java switch statement
Переглядів 215Рік тому
The Java switch statement
Concatenating (Joining) Strings in Java
Переглядів 228Рік тому
Concatenating (Joining) Strings in Java
Constant Variables in Java - the "final" Keyword
Переглядів 199Рік тому
Constant Variables in Java - the "final" Keyword
Creating a screenshot of a selected area in macOS Ventura
Переглядів 253Рік тому
Creating a screenshot of a selected area in macOS Ventura

КОМЕНТАРІ

  • @VaibhavShintre-n9g
    @VaibhavShintre-n9g 2 дні тому

    Thank you

  • @realoneway5777
    @realoneway5777 12 днів тому

    Thank you!

  • @kiroooooooous7492
    @kiroooooooous7492 19 днів тому

    Logic Lambda!

  • @mattacarregui3934
    @mattacarregui3934 24 дні тому

    This is awesome! I am curious though: could you use this structure in a 1 player version of the game, ensuring moves are valid by peeking at the top values of the tower you are trying to move to? If so, how could you develop a “hint” feature that would guide you in the correct direction without making a graph of all the nodes and running a search algorithm? Is there a numerical indicator of the “correct direction”? Lmk what you think!!

    • @mattacarregui3934
      @mattacarregui3934 24 дні тому

      Side thought: it seems the correct direction along the graph could be determined by ensuring no two odd or even numbers are touching on any of the stacks and if a relatively big ring is on the correct peg. But how would you determine the next best move?

  • @ronh4658
    @ronh4658 26 днів тому

    Thanks! I'd figured out what I did wrong from stack overflow, and this made it make a lot more sense.

  • @utkuceylan2309
    @utkuceylan2309 28 днів тому

    Piece of art

  • @FahadNaeem-m4n
    @FahadNaeem-m4n Місяць тому

    Amazing tutorial, is there a way to automatically open file without everytime going to search it in folders?

  • @ConorJurewicz
    @ConorJurewicz Місяць тому

    Great video

  • @howtopasstime
    @howtopasstime Місяць тому

    thanks bro

  • @OfficialDuMa
    @OfficialDuMa Місяць тому

    Wouldn't for In-order the right subtree pattern would be I, F, J, C, G, K and not C, I, F, J, G, K like you stated. Since in the inorder you visit the left most child of the subtree before visiting the root node of that subtree.

  • @LordChen
    @LordChen Місяць тому

    Thanks!

  • @autruche_autruche5539
    @autruche_autruche5539 Місяць тому

    nice video ty

  • @solaris051
    @solaris051 Місяць тому

    Can't thank you enough! I was almost ready to give up after trying to deal with the problem for hours. The solution turned out to be so simple

  • @elidemarte8932
    @elidemarte8932 Місяць тому

    Thank you for a clear explanation 👍

  • @soufyanbaghdadi3253
    @soufyanbaghdadi3253 2 місяці тому

    thanks 🤩

  • @thatshowshelives
    @thatshowshelives 2 місяці тому

    What if I don't want to set up for c and c++? But for java?

  • @jackfrost8969
    @jackfrost8969 2 місяці тому

    windows 11 says that the program is harmful

  • @tbimbra
    @tbimbra 2 місяці тому

    Your tip helped a lot! Thx.

  • @preetchoudhary3958
    @preetchoudhary3958 2 місяці тому

    Thanks a lot for that.

  • @markderlo212
    @markderlo212 2 місяці тому

    very bad video quality - almost unreadable text, therefore it is a useless presentation

  • @kamalcampbell2254
    @kamalcampbell2254 2 місяці тому

    I love vids on C++

  • @tanek9739
    @tanek9739 2 місяці тому

    This is the best exactly what I wanted

  • @hockeyfan1233
    @hockeyfan1233 2 місяці тому

    thanks for the helpful video!

  • @jangoldin6561
    @jangoldin6561 2 місяці тому

    modulepath is missing in build path for me. how can i solve this problem?

  • @kittoeebenezer7067
    @kittoeebenezer7067 2 місяці тому

    The 2024.2 version is really bad, it takes about 10 seconds to execute even a single line of code. This version was more stable. Been searching for it but can't find this particular one

  • @sahilsabale6531
    @sahilsabale6531 2 місяці тому

    Thank bro it's helpful for me ❤

  • @catharperfect7036
    @catharperfect7036 3 місяці тому

    yo homie word to Gosling dis be bangin

  • @theredtree7493
    @theredtree7493 3 місяці тому

    FINALLY! THE REAL ROTATION. i dont understand why they call left and right rotate eventhought they won't show us rotation V_V

    • @sartaazsaas768
      @sartaazsaas768 14 днів тому

      i was struggling so hard, then he literally rotated it and everything clicked, so easy now.

  • @snehapoudel9598
    @snehapoudel9598 3 місяці тому

    what to do when the letters are repeated?

  • @piyushgupta1533
    @piyushgupta1533 3 місяці тому

    Thanks for explaining the steps to resolve the issue

  • @alexloktionoff6833
    @alexloktionoff6833 3 місяці тому

    Using type conversion while de-referencing a pointer or union write and read for different types is UB! To stay within standard and guarantee your code won't break later you have to use memcpy.

  • @jeganbbas
    @jeganbbas 3 місяці тому

    you saved my day

  • @UgochiUgochi-k8u
    @UgochiUgochi-k8u 3 місяці тому

    Please I want to ask I see this language online can it be use to develop compilers and interpreters

  • @channadissanayaka6450
    @channadissanayaka6450 3 місяці тому

    Thank you very much.

  • @channadissanayaka6450
    @channadissanayaka6450 3 місяці тому

    Thank you so much .

  • @octamodius
    @octamodius 4 місяці тому

    Probably the best explanation of tree rotations I've come across so far. Thank you!

  • @jaxn_guy
    @jaxn_guy 4 місяці тому

    Thank you! This really helped.

  • @kasirbarati3336
    @kasirbarati3336 4 місяці тому

    Hey, can I make a request? If possible I like to see more of these Algorithm videos.

  • @kasirbarati3336
    @kasirbarati3336 4 місяці тому

    Really comprehensible and great examples. Thanks a lot. I am gonna see if you have more of these algorithm videos.

  • @alucardbasterd3413
    @alucardbasterd3413 4 місяці тому

    Thanks, man. I was confused about this subject, but your video helped me understand it. Actually, I'm surprised that there aren't any other comments...

  • @syl777
    @syl777 4 місяці тому

    Thanks! I would like to see more videos about PyCharm Community 😊

  • @SystemsDevel
    @SystemsDevel 4 місяці тому

    you can do: ``` typedef struct structname structname; struct structname { structname s; }; ``` if you wanna remove the `struct` inside the struct. I usually make a macro for this and name it `structdef`

  • @datnguyencong96
    @datnguyencong96 4 місяці тому

    Hello, I wonder if cppcheck can check the variables not initialized error in these 3 cases (C/C++): + Initialized in constructor + Initialized in a function, which calls in the constructor + Initialized in scope of function

  • @agentm10
    @agentm10 4 місяці тому

    what is the boa doing in the thumbnail?

  • @enricoschwass8108
    @enricoschwass8108 4 місяці тому

    Another benefit is that + accepts any number of parameters (+ 1 2 3 4 5) gives 15 and you only need to type a single +

  • @Korvvvus
    @Korvvvus 4 місяці тому

    very useful thanks

  • @imerimerii1
    @imerimerii1 4 місяці тому

    👏👏👏

  • @OthmaneLAHRIMI
    @OthmaneLAHRIMI 4 місяці тому

    Thank you 🌹

  • @nicolai4026
    @nicolai4026 5 місяців тому

    really good teaching, thanks