This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// cue v0.3.0-alpha1 | |
given: { | |
INC: USD: v: 2.0 | |
USD: GBP: v: 3.0 | |
} | |
_hydrated: given & { | |
for k, v in given | |
for _, v1 in given | |
for k2, _ in v1 { |
Prelude Data.String> foldr (\acc x -> x ++ acc ) "a" (map (:[]) "12345")
"a54321"
Prelude Data.String> foldl (\acc x -> x ++ acc ) "a" (map (:[]) "12345")
"54321a"
Prelude Data.String> scanr (\acc x -> x ++ acc ) "a" (map (:[]) "12345")
["a54321","a5432","a543","a54","a5","a"]
Prelude Data.String> scanl (\acc x -> x ++ acc ) "a" (map (:[]) "12345")
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://beacon.exergy.dev/?swarmKey=%2Fkey%2Fswarm%2Fpsk%2F1.0.0%2F%0A%2Fbase16%2F%0A69802e05a4ce11ade9f0fe3d55595b24a9d03ad6522848478ebf52f479cfbbb7&bootstrapNode=%2Fdns4%2Fbootstrap-node.jx-staging.xrg.pw%2Ftcp%2F443%2Fwss%2Fipfs%2FQmdnmJmwKSGLDYp494ApKM2DYfrU7BuPVKPCqzKoWRFbDd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
module Swap where | |
import Language.Marlowe | |
main :: IO () | |
main = print . pretty $ contract | |
{- Simply swap two payments between parties -} | |
contract :: Contract |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
module Swap where | |
import Language.Marlowe | |
main :: IO () | |
main = print . pretty $ contract | |
{- Simply swap two payments between parties -} | |
contract :: Contract |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cue eval ttest.cue | |
FooBar: string | |
test: { | |
subject: _ | |
describe: { | |
"One big definition": { | |
subject: string | |
it: { | |
"should work for invalid": { | |
assert: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bin |
Followed tutorial here: https://github.com/golang/go/wiki/WebAssembly
- install compatible version of golang. Test with go1.12.8
- get cue:
go get -u cuelang.org/go/cue
NOTE: this installs the packages files, not the cmd - get the wasm exec_file
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js
Description | Entity | Preview |
---|---|---|
A With Acute, Latin Capital Letter | Á | Á |
A With Acute, Latin Small Letter | á | á |
A With Breve, Latin Small Letter | ă | ă |
A With Caron, Latin Small Letter | ǎ | ǎ |
A With Circumflex, Latin Capital Letter | Â | Â |
A With Circumflex, Latin Small Letter | â | â |
NewerOlder