Code Monkey home page Code Monkey logo

func-examples's People

Contributors

swafox avatar

Stargazers

 avatar

func-examples's Issues

FunC Cookbook Completion Tracker

List of all FunC Cookbook examples and their status of being wrapped into a runnable blueprint project ๐Ÿ‘‡

Basic Functionality โœ…

  • BlankProject
  • SimpleCounter
  • How to write an if statement
  • How to write a repeat loop
  • How to write a while loop
  • How to write a do until loop

Mathematics โœ…

  • How to raise number to the power of n
  • How to generate random number
  • Modulo operations
  • How to get current time

Sending Messages โœ…

  • How to build an internal message cell
  • How to contain a body as ref to an internal message cell
  • How to contain a body as slice to an internal message cell
  • How to send a simple message
  • How to send a message with an incoming account
  • How to send a message with the entire balance
  • How to send a message with a long text comment
  • Generate internal address (out of scope)
  • Generate external address (out of scope)

Comparison

  • How to determine if slice is empty
  • How to determine if slice is empty (doesn't have any bits, but may have refs)
  • How to determine if slice is empty (doesn't have any refs, but may have bits)
  • How to determine if cell is empty
  • How to determine if dict is empty
  • How to determine if tuple is empty
  • How to determine if lisp style list is empty
  • How to determine a state of the contract is empty
  • Determine if slices are equal
  • Determine if cells are equal

Type conversion

  • Resolving type X
  • How to convert string to int
  • How to convert int to string

Tuples

  • How to iterate tuples in both directions
  • Reversing tuples
  • Determine if tuples are equal
  • Iterating n-nested tuples
  • Basic operations with tuples

Dictionaries

  • How to store and load dictionary in local storage
  • How to iterate dictionaries
  • How to delete value from dictionaries

Miscellaneous

  • How to write own functions using asm keyword
  • How to throw errors
  • How to remove an item with a certain index from the list
  • How to get only data bits from a slice without refs
  • How to define your own modifying method
  • How to iterate cell tree recursively

stateInit

  • How to iterate through lisp style list
  • How to send a deploy message with stateInit only with stateInit and body
  • How to build a stateInit cell
  • How to calculate a contract address using stateInit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.