Skip to content

Instantly share code, notes, and snippets.

@kalmarek
Created April 19, 2022 15:12
Show Gist options
  • Save kalmarek/5c48acf1dbcbb8580818968e99fbcecd to your computer and use it in GitHub Desktop.
Save kalmarek/5c48acf1dbcbb8580818968e99fbcecd to your computer and use it in GitHub Desktop.
### A Pluto.jl notebook ###
# v0.19.0
using Markdown
using InteractiveUtils
# ╔═╡ a89f1196-a9b0-46dc-af1a-3bef053bd6fc
a = AAA(3)
# ╔═╡ fd05ccc8-424f-40e4-b378-b896140b53ef
a(5)
# ╔═╡ 90461b00-bff1-11ec-3437-e367d2d0cc24
struct AAA
x::Int
end
# ╔═╡ 605912c4-eb06-478e-9b86-41c90572db24
function (a::AAA)(b::Int)
return b*a.x
end
# ╔═╡ 00000000-0000-0000-0000-000000000001
PLUTO_PROJECT_TOML_CONTENTS = """
[deps]
"""
# ╔═╡ 00000000-0000-0000-0000-000000000002
PLUTO_MANIFEST_TOML_CONTENTS = """
# This file is machine-generated - editing it directly is not advised
julia_version = "1.7.2"
manifest_format = "2.0"
[deps]
"""
# ╔═╡ Cell order:
# ╠═90461b00-bff1-11ec-3437-e367d2d0cc24
# ╠═a89f1196-a9b0-46dc-af1a-3bef053bd6fc
# ╠═605912c4-eb06-478e-9b86-41c90572db24
# ╠═fd05ccc8-424f-40e4-b378-b896140b53ef
# ╟─00000000-0000-0000-0000-000000000001
# ╟─00000000-0000-0000-0000-000000000002
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment