Why Nostr? What is Njump?
2024-08-09 09:53:02

Philip Trettner on Nostr: Challenge of the day: Write a Rust version of the following pseudo code: fun foo(i: ...

Challenge of the day:

Write a Rust version of the following pseudo code:

fun foo(i: int,
f: fun int -> int,
ff: fun (fun int -> int) -> (fun int -> int)
) -> int:
return (ff(f))(i)

that is statically dispatched (no dyn, no fun ptr).
Author Public Key
npub1jh0ruetqcqdfcvnwt6tysn7epxj9h6tdhw5j9jn2y5v9ray945qsv6qfrp