# LFE Questions

**URL:** https://erlangforums.com/c/lfe-forum/lfe-questions/101.md

[Latest](https://erlangforums.com/latest.md) · [Categories](https://erlangforums.com/categories.md) · [Tags](https://erlangforums.com/tags.md)

---

## [Need help translating some scheme: exception error: function set/2 undefined](https://erlangforums.com/t/need-help-translating-some-scheme-exception-error-function-set-2-undefined/1099)

<div class="topic-metadata">

**Author:** [@Jorge](https://erlangforums.com/u/Jorge)\
**Replies:** 1\
**Last updated:** [February 19, 2022, 7:32pm UTC](https://erlangforums.com/t/need-help-translating-some-scheme-exception-error-function-set-2-undefined/1099 "2022-02-19T19:32:30Z")

</div>

Im trying to translate some scheme examples in LFE and i stuck in that piece of code. someone can give me a tip? lfe\> (defun class-box (init-value) (let ((content init-value)) (lambda (msg) (l…

---

## [Using records for json objects](https://erlangforums.com/t/using-records-for-json-objects/1053)

<div class="topic-metadata">

**Author:** [@mdbergmann](https://erlangforums.com/u/mdbergmann)\
**Replies:** 5\
**Last updated:** [February 9, 2022, 7:27am UTC](https://erlangforums.com/t/using-records-for-json-objects/1053 "2022-02-09T07:27:32Z")

</div>

Hi. I’d like to use records as json object, because the handling of records is quite nice with the available macros for records. For json I use the library ljson (GitHub - lfex/ljson: An LFE library which provides a un…

---

## [Problem with LFE macro](https://erlangforums.com/t/problem-with-lfe-macro/1039)

<div class="topic-metadata">

**Author:** [@mdbergmann](https://erlangforums.com/u/mdbergmann)\
**Replies:** 4\
**Last updated:** [February 7, 2022, 6:29pm UTC](https://erlangforums.com/t/problem-with-lfe-macro/1039 "2022-02-07T18:29:40Z")

</div>

Hello. I’m having a problem with macro expansion. This is my macro: lfe\> (defmacro foo (body) \`(progn ,@body)) lfe\> (foo (io:format "hello~n")) \*\* exception error: symbol io:format is unbound Now wh…

---

## [How to translate this Erlang code to LFE?](https://erlangforums.com/t/how-to-translate-this-erlang-code-to-lfe/752)

<div class="topic-metadata">

**Author:** [@kokolegorille](https://erlangforums.com/u/kokolegorille)\
**Replies:** 8\
**Last updated:** [February 5, 2022, 11:08pm UTC](https://erlangforums.com/t/how-to-translate-this-erlang-code-to-lfe/752 "2022-02-05T23:08:58Z")

</div>

Hello everyone, I have been trying to solve AOC with LFE, yet there is something I don’t understand. This is the Erlang code… -module(day6). -export(\[load\_data/0\]). load\_data() -\> {ok, Bin} = file:read\_file("inpu…
