scheme Pairs Create a pair

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

A pair can be create with the cons function. The name of the function stand for constructor. In Scheme, everything is pretty much based on pairs.

(cons a b)

The function return a pair containing the element a and b. The first parameter of cons is called car (Content Address Register) and the second argument is the cdr (Content Decrement Register).



Got any scheme Question?