#bake_values

Invocation

v :: #bake_values f(<type-name> = <value>); - provide specific values to a function at compile time. 1

See also:

Examples

Examples:

toggle example
length_body_text.jai

  1. #bake_values [..] polymorphic functions are mostly like regular functions, they just take type variables. Once you’ve done that, once you have it so that there’s not much of a difference between polymorphic functions and regular functions, you can start treating regular functions like polymorphic functions and do cool stuff with it.
    “Polymorphic Procedures, part 2” YouTube, uploaded by Jonathan Blow, Apr 1, 2015, https://youtu.be/7Fsy2WaxLOY?t=2828 

jailang 2019 pixeldroid
https://github.com/pixeldroid/jailang
programming pages theme v0.5.21 (https://github.com/pixeldroid/programming-pages)