/
githubmirror
/
julia
Обзор
Документация
Войти
/
githubmirror
/
julia
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/gc/linkedlist.jl
23 строки
443 B
Lilith Orion Hafner
Switch a bunch of 2-space tabs to 4-space tabs [NFC] (#54198)
29 май 2024, 16:43
Не верифицирован
29 май 2024, 16:43
f1b5675
Код
Авторство
О чём код?
# This file is a part of Julia. License is MIT: https://julialang.org/license mutable struct ListNode key::Int64 next::ListNode ListNode() = new() ListNode(x)= new(x) ListNode(x,y) = new(x,y); end function list(N=16*1024^2) start::ListNode = ListNode(1) current::ListNode = start for i = 2:N current = ListNode(i,current) end return current.key end # Memory use is 512 MB _ = list() GC.gc()