leankg 0.20.2

Lightweight Knowledge Graph for AI-Assisted Development
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import std/strutils

proc double(x: int): int =
  x * 2

proc add(a, b: int): int =
  a + b

type
  Point = object
    x, y: int

func distance(a, b: Point): float =
  sqrt(float((a.x - b.x)^2 + (a.y - b.y)^2))