I am trying to emulate a stack in a circuit. I use DrScheme and I choose the R5RS language. I need to create functions that appear, push and drop in. But it's hard for me to figure out how to follow the link. I read some information about boxes, but they are not supported in R5RS. Is there any other way to follow the link?
Instead of passing "by reference" what you can do in an imperative language, Scheme encourages you to think in a functional sense. This means that your operation push, for example, will take two parameters:
push
, . pop , peek .
pop
peek
, Scheme , . :
: r5rs; . DrRacket "". , :
#lang racket (define b (box 234)) (set-box! b 333) (unbox b)
FWIW: , , , DrRacket (nee DrScheme).
, , " ". - , (, racket, r5rs, java ..) .
Source: https://habr.com/ru/post/1778525/More articles:Find out if an instance of a DataContract is serializable in WCF - c #Using Python FTP library to extract files - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1778522/array-index-loop-variable-resets-to-zero-in-c-c&usg=ALkJrhh9gmejzc8T7Qy2AJJJHgMFJU37VAWhat is the most efficient way to copy an int array in a C object? - arraysΠΡΠΎΠ±Π»Π΅ΠΌΠ° 98 - Project Euler - anagramXNA and multitouch - xnaiphone NSNumberFormatter runs on simulator not on os 4.2 device during parsing - iphoneSaving stream (mp4) on iphone - streamHow many cores do I have? - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1778530/user-has-to-login-again-when-i-redirect-from-http-to-https&usg=ALkJrhiBu3RM7jeg00EBrIcIo337hzDyHgAll Articles