Resources.split: def of bend-kit-resources@0.1.0.0 Import: import bend-kit-resources@0.1.0.0/resources.bend as Resources Lines 80-83 of bend-kit-resources@0.1.0.0/resources.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-resources@0.1.0.0/resources.bend&start_line=80&end_line=83 import Base # Splits n units off g. Whole hands back g when it holds fewer than n. def split(g: Grant, +n: Nat) -> Split: Grant{+o, +a} = g split.go(Nat.is_le(n, a), o, a, n) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_le https://jend.leeeet.dev/definition.txt?path=bend-kit-resources@0.1.0.0/resources.bend&name=Grant https://jend.leeeet.dev/definition.txt?path=bend-kit-resources@0.1.0.0/resources.bend&name=Split https://jend.leeeet.dev/definition.txt?path=bend-kit-resources@0.1.0.0/resources.bend&name=split.go