/
Cuttings

Code (10)

  1. 06.05.2025
    Nim / Exercise - `timed(expr)` macro
    Measure and print how long an expression takes to run.

  2. 06.05.2025
    Nim / Exercise - `swap(a, b)` macro
    Swap the values of two variables.

  3. 06.05.2025
    Nim / Exercise - `assertPositive(expr)` macro
    Check if the expression is > 0.

  4. 02.05.2025
  5. 02.05.2025
    Nim / Exercise - Make a double(x) macro
    Take an identifier and generate code that doubles its value in-place.

  6. 02.05.2025
    Nim / Exercise - Make an `info(expr)` macro
    Get familiar with `quote do`.

  7. 27.06.2021
    Eloquent Javascript / Chapter 2, Exercise 03
    Chessboard - in which I review ternary operators.

  8. 12.02.2021
    46 Simple Python Exercises/#10
    Find common list members.

  9. 11.02.2021
    46 Simple Python Exercises/#02
    Find the largest of three.

  10. 11.02.2021
    46 Simple Python Exercises/#01
    Largest number selector.

© Wan Zafran. See disclaimer.